From: Jigar Patel <[email protected]>
Date: Tue, 7 Jun 2011 16:36:28 -0700

(snip)
> So I have user password into variable so now need to
> tweak smbpasswd that way that is going to take my variable password instead
> of asking me. Thanks in advance.

You can do this like that:

# (echo password; echo password) | smbpasswd -s monyo
Password changed for user monyo

---
TAKAHASHI Motonobu <[email protected]> / @damemonyo
  http://damedame.monyo.com/ / http://facebook.com/monyot

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to