Samba smb.conf read only and read/write accounts
Posted
by
Pieter
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Pieter
Published on 2012-03-20T22:40:30Z
Indexed on
2012/03/20
23:39 UTC
Read the original article
Hit count: 527
samba
|shared-folders
Below you can see my smb.conf, pieter is my admin user read/write on the shares works good with that account. Then I have a leecher account that has been added with smbpasswd -a leecher to the smb users, it is set up so this user only has read access to the shares. This works on MegaSam and on Thumbnails but not on my other drives, leecher does not get any access on the other shares.
[global]
security = user
[MegaSam]
comment = MegaSam
path = /media/MegaSam
browsable = yes
guest ok = no
read list = leecher
write list = pieter
create mask = 0755
[SilentBob]
comment = SilentBob
path = /media/SilentBob
browsable = yes
guest ok = no
read list = leecher
write list = pieter
create mask = 0755
[Thumbnails]
comment = Thumbnails
path = /media/Thumbnails
browsable = yes
guest ok = no
read list = leecher
write list = pieter
create mask = 0755
[Downloads]
comment = Downloads
path = /media/Downloads
browsable = yes
guest ok = no
read list = leecher
write list = pieter
create mask = 0755
© Ask Ubuntu or respective owner