[Samba] smbpasswd with password on the command line
jra at samba.org
Sun Sep 26 23:44:41 GMT 2004
On Sun, Sep 26, 2004 at 09:00:28PM +0100, 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....
Sorry, that was intentional. Allowing password on a command
line is a horrible security risk and it worked by accident,
until I fixed it.
The correct (supported) way is to use -s (read from stdin) and
to pass the password via stdin.
More information about the samba