LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Glen Turner <glen.turner@aarnet.edu.au>
  To  : omegasys@adam.com.au
  Date: Wed, 26 Apr 2000 22:44:45 +0930

Re: Samba Permissions

Jeremy Ervine wrote:
> 
> Hi all,
> 
> I am having a small problem with Samba File Permissions. I have created a small
> network with about 10 users, and these ten users all have their own home directory,
> plus they need full access a shared, samba share. My problem is, each user who
> writes a file to that share is only writable to that user, but read only to
> everyone else.
> 
> I have tried all the samba docos, I have set in Linuxconf 777 to be the default
> permission for all files written, but still no luck.

I find it best to force the permissions of the created files
on shares that are owned by the group.  For example, if
all users in the UNIX group 'office' exchange files through
the 'office' share, then I put the following into smb.conf

[office]
   comment = office.smb.example.edu.au
   path = /home/samba/office
   browseable = Yes
   writeable = Yes
   read list = @office
   write list = @office
   force group = +office
   create mask = 0660
   directory mask = 0770
   force create mode = 0660
   force directory mode = 0770

Similarly, a web server's HTML directory is:

[www]
   comment = www.example.edu.au
   path = /home/httpd/html
   browseable = Yes
   writable = Yes
   read list = @html
   write list = @html
   force group = +html
   create mask = 0664
   directory mask = 0775
   force create mode = 0664
   force directory mode = 0775


-- 
 Glen Turner                                 Network Engineer
 (08) 8303 3936      Australian Academic and Research Network
 glen.turner@aarnet.edu.au          http://www.aarnet.edu.au/
--
 Earth is a single point of failure

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page