Samba and Unix Password Sync
Hello,
I'm trying to activate Unix Password Syncing in Samba (Distribution: Sarge).
However, it doesn't work:
thomas@gucky:~$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
cli_pipe: return critical error. Error was Call timed out: server did not
respond after 20000 milliseconds
cli_oem_change_password: Failed to send password change for user thomas
machine 127.0.0.1 rejected the password change: Error was : Call timed out:
server did not respond after 20000 milliseconds.
Failed to change password for thomas
If I deactivate the syncing in /etc/samba/smb.conf, Samba works without
problems - also changing the password is no problem.
Another (perhaps related) problem:
After the failed attempt to change the password (as above), the Samba demon
isn't stopped by its init.d script anymore:
root@gucky:/etc/samba# /etc/init.d/samba stop
Stopping Samba daemons: nmbd smbd.
root@gucky:/etc/samba# ps axu | grep sm
root 4131 0.0 0.5 9604 3072 ? S 15:03 0:00 /usr/sbin/smbd -D
root 4146 0.0 0.1 3236 712 tty1 S+ 15:04 0:00 grep sm
There's no .pid file in /var/run/samba anymore. If I restart Samba, netbios-ssn
doesn't listen anymore:
root@gucky:/etc/samba# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
root@gucky:/etc/samba# netstat -a | grep netbios
udp 0 0 dhcp31-240.p:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 dhcp31-240.:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
To get Samba back to working, I need to kill the demon manually.
Any ideas?
/etc/smb.conf:
# Global parameters
[global]
workgroup = NUMERIK
server string = %h server (Samba %v)
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
unix extensions = No
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
Best regards
Thomas
Reply to: