Samba smb.conf read only and read/write accounts
- by Pieter
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