[Samba] smbpasswd -a -s /add smbuser via bash script
Gerald (Jerry) Carter
jerry at samba.org
Fri Jan 14 20:11:07 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Colin E. McDonald wrote:
| I have a script that used to work fine under Samba 2.2.7a.
|
| I would pass the username and password to smbpasswd
| -a -s $user $password and it worked fine.
(echo $pw; echo $pw ) | smbpasswd -s -a $user
cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm) ------- http://www.samba.org
GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back." Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB6CdbIR7qMdg1EfYRAlJGAJ9hm9NbVLGhfrneTLzTiK9XqGBlIgCg7TPX
UDYLCbPNBCnFKpOE/PjLIDw=
=crZ/
-----END PGP SIGNATURE-----
More information about the samba
mailing list