Setting up recursive permissions on shared folders

Nov 20, '02 09:23:56AM

Contributed by: ig88

I was reading about some of the problems with 10.2.2 and the 'security' of having all copied files set to read only permissions for files copied over to another machine. I found a bit about setting permissions on a directory so that they would hold its parents permissions when copied into the directory.

I created a folder called 'shares' and created folders within that for each of the designers on my team to dump files that we need to go back and forth with. In SharePoints, I made the 'shares' a sharepoint, and then added a group with all of the designers. I set the permissions for the folders to myself as the owner and the group is the one created above. This allowed me to delete files within the subdirectories when I didn't need them any longer.

Then in the terminal, I cd'd over to the directory and did a "ls -l" and got:

 drwxrwx--x
as the listing for the folder ... all seemed well. I then ran:
 % chown g+s 'dirname'
At least all of the files that are dragged into it take on the permissions from the directory above, but folders that are created inside by a shared user don't. Any files that are put in by the shared user into a folder they create I need to run thru batchmod and reset, then I can delete it. But files that are dragged into the main directory can be deleted no problem.

I am sure there is lots more that can be worked with this, I have just been trying to find a way to be able to share files a lot easier. We don't use the 'public' folders since they are on the boot drives and we set the systems up for better access with all of the graphic and video files that we use.

[Editor's note: I have not tested this myself...]

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20021120062356693