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@samba.org