[Samba] Setting Samba Password Through Script
Goetz Rieger
goetz.rieger at suse.de
Wed Jul 17 00:30:02 GMT 2002
Hey,
On Tue, 16 Jul 2002 09:07:14 -0400
"Bell, Brad" <bbell at maharam.com> wrote:
> I am trying to create a script to set the Samba password. I see in the
> man pages a '-s' option but can't get the syntax to work.
I have done it like that in my scripts:
/usr/sbin/useradd -g users -c 'Samba User' -s /bin/false -m $NAME
/usr/bin/smbpasswd -a $NAME $INITPASS
Regards,
Goetz
--
Goetz Rieger Phone: +49 2241 92917-39
SuSE Linux AG Fax: +49 2241 314599
Geschaeftsstelle Rhein-Ruhr
Marie-Curie-Str. 11-17, D-53757 St. Augustin
More information about the samba
mailing list