[Samba] smbpasswd with password on the command line

Hugo Brites hugo at brites.com
Sun Sep 26 21:56:18 GMT 2004


On Sunday 26 September 2004 21:00, Pedro Silva wrote:
> I've upgraded my samba server to 3.0.6 and without any warning the
> command smbpasswd no longer accepts passing the user password on the
> command line!
>
> This was a very bad thing for me since the scripts I use to generate all
> my users account stopped working :-(
>
> Anyone had the same problem? Any suggestions before rewriting
> everything....
>
> Pedro Silva
Hi

 Just use 
  (echo <password>;echo <password>)| smbpasswd -s -a <username>

 seen it somewhere
 hope it help's


Hugo


More information about the samba mailing list