smbpasswd -s in scripts

Joseph Obernberger joeo at nssolutions.com
Fri Dec 14 14:26:07 GMT 2001


Hi - I'm trying to use smbpasswd -s in a script.  Is it possible to do
something like:
cat /tmp/password.txt /usr/samba/bin/smbpasswd -s username
or even
cat /tmp/password.txt /usr/samba/bin/smbpasswd -s -U administrator -j
DOMAIN -r SERVER
This is on a netbsd 1.5.2 installation of samba 2.2.2.  Every time I try
to do a command with smbpasswd in a script, it still asks for the
password.
Thanks very much.

                                                joeo






More information about the samba mailing list