Tuesday, September 11, 2012

samba: secure and guest access

to create a guest access in your secure samba, edit your smb.conf
just add an entry with guest ok = yes

[common]
   comment = /common
   read only = no
   locking = no
   path = /data/data1/common
   guest ok = yes


then restart service
# service smbd restart

to compare, this one's restricted to users with login

[repository]
   comment = /repository
   read only = no
   locking = no
   path = /data/data1/repository
   guest ok = no


and this one's restricted to users with login belonging to a specific group

[sysad]
   comment = /sysad
   read only = no
   locking = no
   path = /data/data1/sysad
   guest ok = no
   valid users = @sysad
   force group = sysad

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...