[Samba] Problems with smbpasswd

Mac dmccann at nibsc.ac.uk
Fri Mar 8 03:43:04 GMT 2002


>From: Bobby Mitchell <bmitchel at niac.usra.edu>
>To: samba at lists.samba.org
>Subject: [Samba] Problems with smbpasswd
>Date: Thu, 07 Mar 2002 08:38:36 -0500
>
>I am having trouble changing passwords with smbpasswd on the Samba 
>server while logged in as a user. I get this error message:
>machine 127.0.0.1 rejected the password change: Error was : The 
>specified password is invalid.

Ah.

That's what smbpasswd says if there's any kind of error at all.  It
doesn't specifically mean what it says.  It just means the password
change didn't take.

>When I log in as root I can change the password. I'm also trying to use 
>"unix password sync = yes" to change the unix password when I change the 
>smb password.

Ah.  I'd turn this off, restart smbd and see if you still have the same
trouble.  The UNIX password change is always attempted _first_ and if
that fails (for any reason) then the whle password change is aborted and
you'll get the error message you got.


>The file, /etc/samba/smbpasswd, that contains the passwords has 
>permissions 600. I just changed the perms to 777 to test and got the 
>same results.

This is ineffective, and smbd changes the perms back to 0600 whenever it
changes the file, to enforce security.


Most likely, your 'passwd chat' is not quite right.  This is a _pain_ to
to debug because you _have_ to use debug level 100 which is voluminous.


                               Mac
          Assistant Systems Adminstrator @nibsc.ac.uk
                        dmccann at nibsc.ac.uk
   Work: +44 1707 654753 x285      Everything else: +44 7956 237670 (anytime)




More information about the samba mailing list