I administer a few classrooms running Mac OS X 10.5.8.
I've created an alias on the desktop of the student's machines that links to a shared folder on a server (well, not a real server, but a regular machine sharing files). I don't want the users (students) to be able to delete this alias. I've changed the owner to administrator, I've locked the icon, but it doesn't seem to matter. Users can still drag locked icons into the Trash (and delete them by holding shift...).
I tried setting the owner to root, but I've found this doesn't quite work, since I don't have root enabled on the machines by default. I can't seem to chown the file without logging in as root, which is a pain. Even after I successfully used the following:
chown root SharedFolderAliasName
I was still able to delete the alias logged in as Student.
I've been googling for a solution but haven't found any Mac options.
Maybe I should/could write an Applescript to check for the icon and create it if it doesn't exist (the username and password are stored in a keychain) but I'm not quite sure how to do that.
If anyone knows of some good housekeeping scripts to delete everything from the desktop every night (except my desired alias), please post a link.
P.S.
I'm using Apple Remote Desktop 3.4
I've created an alias on the desktop of the student's machines that links to a shared folder on a server (well, not a real server, but a regular machine sharing files). I don't want the users (students) to be able to delete this alias. I've changed the owner to administrator, I've locked the icon, but it doesn't seem to matter. Users can still drag locked icons into the Trash (and delete them by holding shift...).
I tried setting the owner to root, but I've found this doesn't quite work, since I don't have root enabled on the machines by default. I can't seem to chown the file without logging in as root, which is a pain. Even after I successfully used the following:
chown root SharedFolderAliasName
I was still able to delete the alias logged in as Student.
I've been googling for a solution but haven't found any Mac options.
Maybe I should/could write an Applescript to check for the icon and create it if it doesn't exist (the username and password are stored in a keychain) but I'm not quite sure how to do that.
If anyone knows of some good housekeeping scripts to delete everything from the desktop every night (except my desired alias), please post a link.
P.S.
I'm using Apple Remote Desktop 3.4