On Mon, 11 May 2009 10:36:49 -0700 (PDT), Pete Clapham <[email protected]> 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
