[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,
pete
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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.  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


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

 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

It's essentially the same format that you'd use on the command line if
you were a user, but without the visual prompts.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoIkpkACgkQmb+gadEcsb4mYwCffJKEWy5fBYSars6dfwg2Z+oB
0+cAmwW2pIQyRjTxD9jzsfCc795WD03v
=h8O8
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

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 were a user, but without the visual prompts.

   ... I personally prefer

smbpasswd -a -s dmarkey HERE
$NEW_PASS
$NEW_PASS
HERE

most days.  I also recognize that reasonable people can have different
styles.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba