Op Monday 27 June 2005 11:40, schreef u:> Wim Bakker schrieb:
> > Hello
> >
> > I try to get smbpasswd adding users and passwd from script the
following
> > way :
> >
> > smbpasswd -a -s <username> <password>
> >
> > What is the correct syntax for using smbpasswd with -s
> > option?
>
> printf "<password>\n<password>\n" | smbpasswd -a -s
<username>
Thanks,
I did :
echo <passwd> | smbpasswd -a -s <username>
which gave me a mismatch error
apparently smbpasswd wants to see a
confirmation nowadays with -s.