Results 1 to 2 of 2
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 ...
- 03-24-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
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!!!!!!
- 03-26-2009 #2Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
Read this: Using samba - Users and Security
RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.


Reply With Quote