fails to change password, FreeBSD

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Wed Feb 7 19:35:04 GMT 2001


Hello Alexey,
When run as root, smbpasswd actually manipulates the smbpasswd file
directly; does not need to establish a session with the Samba server.
When run as any other user, it establishes a session with the Samba server
to get the password changed.  There are a couple of known problems where if
you have interfaces = and bind only interfaces = yes in your smb.conf file,
that the smbpasswd command can fail because it cannot establish a connection
via the localhost (127.0.0.1) loopback.
This same sort of thing can happen if localhost is not resolvable (ie it is
not in your /etc/hosts file, or on your dns server)... 
Or if you have a hosts allow or hosts deny in your global section of
smb.conf you may also be keeping 'localhost' from accessing samba during
this phase. You might check these things.
If you change your global smb.conf parameters log level = 10, and then try
smbpasswd again, you can look at the resulting log.smb debug file and get a
better picture of exactly what step is failing.

Hope this helps,
Don

-----Original Message-----
From: Alexey Koptsevich [mailto:kopts at astro.ioffe.rssi.ru]
Sent: Wednesday, February 07, 2001 2:04 PM
To: samba at samba.org
Subject: fails to change password, FreeBSD



Hello,

smbpasswd (ver. 2.0.7) fails to change password if run as regular user,
although does this if run as root. I use FreeBSD 4.2 RELEASE. Session log:

> smbpasswd 
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the session setup. Error was : ERRSRV -
ERRbadpw (Bad password - name/password pair in a Tree Connect or Session
Setup are invalid.).
Failed to change password for kopts

Thanks,
Alex





More information about the samba mailing list