Colin E. McDonald
2005-Jan-13 18:31 UTC
[Samba] smbpasswd -a -s /add smbuser via bash script
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. Now it isnt working with 3.07. Has anyone run into this? It looks like I could pass the password variable to the command twice (password entry and confirmation) but i am not sure how to do this via bash (how to make the variable look like it came from stdin. Thanks for any assistance
Gerald (Jerry) Carter
2005-Jan-14 20:11 UTC
[Samba] smbpasswd -a -s /add smbuser via bash script
-----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-----