[Samba] Simple question regarding smbpasswd

2009-05-11 Thread Pete Clapham
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,

Re: [Samba] Simple question regarding smbpasswd

2009-05-11 Thread David Markey
On Mon, 11 May 2009 10:36:49 -0700 (PDT), Pete Clapham peteclap...@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. 

Re: [Samba] Simple question regarding smbpasswd

2009-05-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Markey wrote: On Mon, 11 May 2009 10:36:49 -0700 (PDT), Pete Clapham peteclap...@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

Re: [Samba] Simple question regarding smbpasswd

2009-05-11 Thread Cameron Laird
On Mon, May 11, 2009 at 4:03 PM, Ryan Novosielski novos...@umdnj.eduwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Markey wrote: ... echo -e newpassword\nnewpassword\n | smbpasswd -a -s dmarkey It's essentially the same format that you'd use on the command line if you