Only one user can connect to Ubuntu samba server
- by StaticMethod
I setup a samba server on 12.04 LTS, and it works great for one user but not the others.
I am trying to map a network drive from a windows 7 laptop. I can successfully authenticate with one user, but the other two both get "Access is denied" errors.
Here is my smb.conf file.
[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[share]
comment = Ubuntu File Server Share
path = /srv/share
read only = No
create mask = 0755
I know that the service is successfully reading from the /etc/passwd file because if I change the Linux password for the user that works, I have to use the new password when I connect.
I changed all the users so they are all members of the same groups (all three users are admins anyway).
I only ever have one user connected at a time.
Here are the permissions on the shared folder
/srv$ ls -l
drwxrwxrwx 1 nobody nogroup 16 Feb 22 17:05 share
Any ideas?