0

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!!!!!!

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by DimaYasny
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.