19 December 2010


I was trying to setup public shares (including a printer) and user secured shares on SAMBA, but kept running into problems where XP would not authenticate to the shares.

The first problem was an oversight on my part. I had 2 security settings in my [global] space.

security = user
security = share

The second problem was actually with XP. It was storing the guest password. I actually had to remove the stored shares using the command line.

net use \\\jeff /delete

Here is my final smb.conf file:

security = user
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
guest ok = yes
guest account = nobody
workgroup = LINUX
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 50
interfaces = lo eth0
bind interfaces only = yes
hosts allow =
hosts deny =
browseable = yes
map to guest = Bad User
domain logons = no

# follow symlinks
follow symlinks = yes
wide links = yes
unix extensions = no

printcap name = cups
printing = cups

browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp

comment = Home Directories
browseable = no
read only = no
create mode = 0750
guest ok = no

comment = move to here
path = /home/nas
read only = no
public = yes
guest ok = yes

comment = documents
path = /home/docs
read only = no
guest ok = no

Don't forget to add passwords for users and enable them:

smbpasswd -a jeff
smbpasswd -e jeff

They also need to exist in your /etc/samba/smbusers file:

jeff = "jeff"

No comments:

Post a Comment