Setting Access privileges
Setting Access privileges
- Subject: Setting Access privileges
- From: Doug Watkins <email@hidden>
- Date: Thu, 2 Aug 2001 09:32:35 +1000
I have the following script to set each student as the user/group of
their folder (and the staff group as owner) on a server which works
fine except for one problem. The script only sets the owner of the
user's top level folder - all enclosed folders retain their original
privileges. This would normally be rectified by clicking the button
in the Sharing Window to "Copy these privileges to all enclosed
folders". I can't see anything in the script library to accomplish
this. Any ideas?
set folderList to folders in folder "Year 7" of disk "Data"
repeat with theFolder in folderList
open sharing window of theFolder
tell theFolder
set privileges inherited to false
set the group to the name of theFolder
set see folders of group privileges to true
set see files of group privileges to true
set make changes of group privileges to true
set see folders of guest privileges to false
set see files of guest privileges to false
set make changes of guest privileges to false
set protected to true
set the owner to "Staff"
end tell
close sharing window of theFolder
end repeat
Note:- The script must be run from a work station with file sharing
turned on and the server "Data" volume mounted on the desktop.
TIA
Doug Watkins
Bendigo
AUSTRALIA