I am on Mac OS Lion and wants to prevent users from creating sub directories inside a folder but at the same time users should be able to add files to the same directory
The following command does not allow user to add files to the folder
chmod +a "user allow add_file" test
What should I do to allow users to add files and not sub directories?
here are links to
Screen Shot 1
Screen Shot 2
Best Answer
EDIT: The following is a partial solution. It will work at the shell level as expected but in Finder it can be bypassed with the if user is admin or knows the a admin user id & password. See comments below...
Check the man page on
chmod
and you will find...So the command you are looking for is...
to forbid anyone in group staff from creating sub folder and then testing should give you
Where as creating a file...
is no problem. You should also find that Finder will have the Create Folder option disabled as well.
HTH