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
On Mon, 11 May 2009 10:36:49 -0700 (PDT), Pete Clapham <peteclapham@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 doI> insert the password of the new user into the script? > > Thanks for your help. > > cheers, > peteecho -e "newpassword\nnewpassword\n" | smbpasswd -a -s dmarkey