[KLUG Members] samba and permission

Michael Lueck mlueck at lueckdatasystems.com
Tue May 31 07:08:16 EDT 2005


On Tue, 31 May 2005 01:35:45 +0530, Komal wrote:

>No. My question is after mounting remote share on Linux box only root
>has read and write access and normal user can only read the content

OK, then if Linux is the server, again roughly the same as I described except
tweaked for the  Samba standards. For the Samba share in question, something
like these couple of lines should do the trick...

   read only = yes
   write list = root
   create mask = 0666
   directory mask = 0777

Which would allow others access to the files root puts there, and through the
share level security it would be read only to them. Should you ever care to
allow them to write, you would not have to go back and chmod the files, simply
change the read only flag. Else, you could change the create mask to be more
secure as well... lots of options!

Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/



More information about the Members mailing list