|Dec 7, 2012, 07:35 AM||#1|
File Permissions for multiple users
I'm doing some volunteer IT work for a non-profit trying to gain some experience. For the most part things have gone well, however, someone came to me with a question I haven't been able to solve. we have a 21tb raid set up via thunderbolt to a mac mini server. There's about 10 users who have access to the server who typically work on projects together(video/audio team). The person in charge wanted it set up so all 10 users could write to the same drive, rather than partition it into individual blocks; a Pool type mechanic. I however have run into the problem that if a user creates a new directory permissions on that folder are such that said user has read/write assess, and the group "staff"(everyone in the office) has read only access.
At present I'm able to manually set directory permission for staff to have read/write and if I go to the root directory I can apply it to everyone, however once a new folder is created that process has to be repeated.
I would like so that any new directory is initialized with the permissions of the root folder. Is that possible. If so how/where could I find instructions to do it.
Thanks a bunch!
|Dec 7, 2012, 08:23 AM||#2|
RE: umask and chmod...
...this is the old unix way of doing what you wish...
I believe the bash shell command that you require is "umask". The "umask" command allows you to set the default permissions given to files and directories when users create them, thus if all 10 of your users are in the same group and that group owns the raid volume, then "umask" can be used to specify that all files created by any user of this group will allow all other users of the same group to have Read/Write access.
You can find information on "umask" in the manpage for bash, "man bash", and the manpage for chmod, "man chmod". Be careful, as "umask" typically specifies the permissions that are turned off by default, not the ones that are turned on. It is a mask, in other words, as the name implies.
You can set the "umask" for everyone in a system-wide "/etc/bashrc", "/etc/profile", or "/etc/bash_profile" shell script that is executed when anyone logs into their computer, or you can set "umask" on an individual basis by including the appropriate command in a user's "~/.bashrc", "~/.profile", or "~/.bash_profile" shell script that is executed when the user logs in.
P.S. Since it appears you are using Mac OS X Server (you indicate "mac mini server"), then you can use the File Sharing pane of the Server.app to configure your RAID so that all created files/subdirectories inherit the permissions of the root directory.
Last edited by switon; Dec 7, 2012 at 10:45 AM. Reason: Added P.S.
|Dec 7, 2012, 04:03 PM||#4|
...just a quick comment...I agree with Les Kern...
If you use ACLs instead of umask, then make sure you set the "file_inherit" and the "directory_inherit" permissions on the root directory so that all subdirectories and files will inherit the permissions also. I believe that this is what Les Kern means by full access, it not only includes R/W but also the inherit permissions.
And under most circumstances, it makes more sense to use the ACLs than to use umask.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Multiple users opening the same file?!||Coxy||Mac OS X Server, Xserve, and Networking||0||Oct 21, 2013 11:38 PM|
|Giving multiple users permissions to the same file.||iwO||OS X 10.8 Mountain Lion||1||Sep 19, 2013 11:44 AM|
|One file - multiple users can open simultaneously!||Alaniz||Mac OS X Server, Xserve, and Networking||2||Apr 8, 2013 04:04 PM|
|How do I test 3g at multiple locations for multiple users in the UK?||gideonbot||iPad||0||Jun 18, 2012 07:24 AM|
|One iMac, Multiple Users = Multiple iPhoto libraries||jlblodgett||Mac Applications and Mac App Store||2||Jun 12, 2012 01:03 PM|
All times are GMT -5. The time now is 11:05 AM.