Running under debian, using SAMBA V3.0.7, I use
PASS=secretworld
USER=joe
(echo $PASS; echo $PASS) | smbpasswd -s -a $USER
Note:
smbpasswd requires a double typed in password, It took me a lot of minutes
to figure that difference between earlier version and the 3.0.7 out but now
it works.
In per
Raymond wrote:
Is there a method to pass a password to smbpasswd from stdin? Currently it
appears only the user or machine name can be passed.
Would like to automate the process via shell script.
NAME
smbpasswd - change a user's SMB password
SYNOPSIS
smbpasswd [-a] [-x] [-d] [-e] [-
Is there a method to pass a password to smbpasswd from stdin? Currently it
appears only the user or machine name can be passed.
Would like to automate the process via shell script.
--
Raymond
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samb