More Questions Than Answers

Dan Atrill's blog site

Samba permission glitch

When logging in to RedHat from a PC via Samba users sometimes showed as Nobody in the logins and file permissions were a little screwy. ie Somebody creates a file which cannot be edited by another user who would get an error on their PC along the lines of “Disk full”.
When setting up Samba shares it is possible to create default permissions for the group that is logging in.
Referring to RedHat’s archives I was able to edit /etc/samba/smb.conf and gave users a default permission of 02775 (ie group ownership, read/write/execute for owner, read/write for group and public)
“ie
In smb.conf, add a share like the following:
[devel]

comment = Shared devel area
path = /home/devel
writeable = Yes
create mask = 02770
directory mask = 02770
inherit permissions = Yes 

You’d probably want a mask of 02775.”
After making changes to smb.conf you’ll need to restart Samba either from Webmin or in the console using #root> service smb restart (you need to be logged in with raised privileges using su – )

Mon, September 5 2005 » Linux

Leave a Reply

*