954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

acadata
Newbie Poster
3 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

check the manual for smb.conf for directory and file masking

create mode = 
directory mask =
DimaYasny
Posting Virtuoso
Moderator
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: