I am trying to setup a samba server with two shares where one is public and the other private. I am keeping the security as share to make both the shares visible when people access just the ip from their windows box. But when I am trying to open the private share, the user is automatically taken up as guest and the username box is disabled. So my question is how can I keep the shares visible while making private shares accessible with an username of my choice ?
Here's my global section and share section of smb.conf file
Code:
[global]
security = share
passdb backend = smbpasswd
encrypt passwords = true
map to guest = bad user
guest account = nobody
create mask = 0644
directory mask = 0755
[private]
comment = Private Share
path = <Private path>
public = no
valid users = <users with access>
readable = yes
writable = yes
browsable = yes
security = user
[public]
comment = Public Share
public = yes
path = <Public Path>
read only = yes
guest ok = yes