[Samba] Change user Password with smbpasswd

Rowland penny rpenny at samba.org
Tue Jan 19 17:03:15 UTC 2016


On 19/01/16 16:30, Stefan Kania wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> I try to change a userpassword with smbpasswd. But I allway get an
> errormessage:
> - -----------
> root at sambabuch-c1:~# smbpasswd -U EXAMPLE\\stefan -r `nslookup
> _ldap._tcp.dc._msdcs.example.net | awk '{print $2;exit;}'`
> Old SMB password:
> New SMB password:
> Retype new SMB password:
> machine 192.168.56.11 rejected the password change: Error was : Wrong
> Password.
> - -----------
> The Client is a valid Member of the Domain:
> - -----------
> root at sambabuch-c1:~# net ads testjoin
> Join is OK
> - -----------
> Everything else works inside the domain, only a user can't change his
> password. What's wrong?
>
>
> Stefan
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iEYEARECAAYFAlaeZI0ACgkQ2JOGcNAHDTYNQQCfQdM5GW6pZvURo4nL52GKaCEv
> 0GIAnimjX9hYDdz08D8uH4XOWFr3r6lm
> =M2OW
> -----END PGP SIGNATURE-----
>

It looks to me like you are trying to use an NT tool to change an AD 
password, have you tried 'samba-tool user setpasswd' instead.

It may help if you supply a bit more info, OS, Samba version, smb.conf etc

Rowland



More information about the samba mailing list