[Samba] use of silent option with smbpasswd

John H Terpstra jht at samba.org
Fri Jul 4 21:19:13 GMT 2003


On Fri, 4 Jul 2003, Philipp Stader wrote:

> Hello everyone
>
> unfortunatly i haven't been able to figure out how to use smbpasswd from
> a shell script with the -s option. Anyone able to provide me with an
> example how to change a password for a user on a remote PDC?
>
> as root calling smbpasswd -r ntserv username newpassword asks me for the
> old password. i didn't get it to work with -s.

It is broken in samba-3.0.0 right now. There is a bug report on it.

It should work fine in samba-2.2.x:
	smbpasswd -s -L username password

- John T.
-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list