Hi there,

I'm a newbie to shell scripting and trying to hack togeter a script to
facilitate the creation of unix users as well as samba users.  I'm using
tdbsam so the -w switch on smbpasswd doesn't seem to work nor apply.

Using " echo $PASSWORD | pw useradd -n $USERNAME -h 0 ", I can setup a
user and their password in one line.  Pw useradd -h 0 only prompts once
for a password.

If I do " echo $ PASSWORD | smbpasswd -a $USERNAME ", I'm still getting
the usual double prompt that smbpasswd asks.  I've also fiddled around
with pdbedit but with the same results.

Any advice would be most appreciated.

Thanks.


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

Reply via email to