[Samba] Simple question regarding smbpasswd
David Markey
dmarkey at dodds.dmarkey.com
Mon May 11 17:40:51 GMT 2009
On Mon, 11 May 2009 10:36:49 -0700 (PDT), Pete Clapham
<peteclapham at sbcglobal.net> wrote:
> Hi, all --
>
> I want to add SMB passwords using a script. It would appear that some
> variant on the following:
>
> smbpasswd -a -s <newusername>
>
> would work. However, the syntax of the -s option isn't clear. How do
I
> insert the password of the new user into the script?
>
> Thanks for your help.
>
> cheers,
> pete
echo -e "newpassword\nnewpassword\n" | smbpasswd -a -s dmarkey
More information about the samba
mailing list