1

I am planning on setting up about 20 computers at a school with Ubuntu which presently have Windows XP. The move should be easy as the computers are already locked down and the users simply open desktop icons to do things. We use a program called Fortres on Windows to prevent users from deleting and moving icons. Is there a way in Ubuntu to accomplish this either with a program or through changing permissions on the desktop icons?

Each computer will have three accounts on them: admin, teacher, and student. We do not have accounts made for each user.

1

I have only half response:

sudo chattr +i /home/teacher/Desktop/* && sudo chattr +i /home/student/Desktop/* `

That way the file actually in the /Desktop became "immutable", so can't be deleted or changed directory by no one.

But still be change position inside the desktop.

man chattr explain the other options

  • Do you know if there is a file that stores the desktop settings that your fix could be applied to which would keep the icons in place? – Buford T. Justice Oct 9 '15 at 17:14
1

You can prevent files from being deleted using permissions. What you need is :

755 (rwxr-xr-x) The file's owner may read, write, and execute the file. All others may read and execute the file. This setting is common for programs that are used by all users.

(learn more here, and here)

Command line

Assuming a launcher icon "launcher" in /home/student/Desktop/launcher owned by admin (superuser)

set correct permissions using the following command :

sudo chmod 755 /home/student/Desktop/launcher

You can do that for the folder (and for all files in it) this way :

sudo chmod -R 755 /home/student/Desktop

and neither teacher nor student can delete these icons (files, actually).

Graphically

Right clic on file > Properties > Permissions (take a look here)

  • owner "admin" access "read and write" (or "create and delete")

  • group "admin" access "read" (or "access files")

  • others access "read" (or "access files")

For the "moving" part of your question, I don't know.

  • Do you know if there is a file that stores the desktop settings that your fix could be applied to which would keep the icons in place? – Buford T. Justice Oct 9 '15 at 17:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.