Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write perms in Samba

Status
Not open for further replies.
Apr 11, 2002
144
US
Samba 2.2.5 on RH9. Only users in "cad" group can write, however when anyone in that group creates a file or dir, its 755, so that user owns it. So only they can write to it again, not anyone else in their group.

Is there a way for them to automatically create their files/dirs as 775, so that anyone in their group can write to that file/dir also? Is this something in smb.conf that can be changed like "inherit permissions"?

Thanks in advanced.


>Think for yourself<
...or someone else will do it for you.
 
In smb.conf you can set the "directory mask = 775" for a given share

 
Ok, here is what worked:

directory mask = 775
create mask = 775
force group = cad

This sets it so that only those in the cad group can create/write in this share, and forces the files/dirs to be 775. I guess it helps to read the smb.conf man page...


>Think for yourself<
...or someone else will do it for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top