-   Linux - Newbie (
-   -   Windows Permissions on CentOS 5.2 File Server (

acadata 03-25-2009 08:30 PM

Windows Permissions on CentOS 5.2 File Server
Here is the situation:

Our CentOS 5.2 server acts as a file server for Samba environment. We have multiple shares, each share has a group associated with it. Each group has multiple users associated with it. Some users are members of more than one group.

For this example we would use the "fs" share, which points to the "fileserver" folder. The permissions on the fileserver folder have been set to 770 via "chmod -R 770 fileserver/". The owner:group has been set to user1:fs via "chown -R user1:fs fileserver/". To set the sticky bit for the group, we used "chmod -R g+s fileserver/"

These commands work fine if we keep using them to fix permissions after any user creates a new file, but we want the permissions and group to be set for any new files created (recursively) under the fileserver share. The "g+s" command seems to have worked to make the group be automatically set for any new file. What currently happens is that if "user 2" creates a new file in the "fs" share, then the file gets assigned "user2" as the owner and the permissions are set to 755, making anyone able to read and execute the file, but only the creator can overwrite or delete the file.

Any help here would be greatly appreciated!!!!!!

frieza 03-25-2009 08:51 PM

looks like you are thinking of 'create mask'
perhaps this will help

acadata 03-26-2009 08:18 PM

Windows Permissions on CentOS 5.2 File Server answer
We tried this and it seems to work:

setfacl -d -m g:[gid]:7 -m o::0 [directory]

This edits the default permissions for a directory. In the example above, it set the group to 7 by default and "others" to 0 on the directory listed.

Thanks for leading us in the right direction.

All times are GMT -5. The time now is 07:33 PM.