19 December 2010

SAMBA and XP

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.


[global]
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 \\192.168.1.10\jeff /delete




Here is my final smb.conf file:

[global]
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 = 127.0.0.1 192.168.1.0/24
hosts deny = 0.0.0.0/0
browseable = yes
map to guest = Bad User
domain logons = no

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

#printers
printcap name = cups
printing = cups


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

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

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

[docs]
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