Date: Thu, 28 Jul 2005 21:21:11 +0200 (CEST) From: "P.U.Kruppa" <root@pukruppa.de> To: "albi@scii.nl" <albi@scii.nl> Cc: freebsd-questions@freebsd.org Subject: Re: script for adding a samba-user Message-ID: <20050728211720.A48905@www.pukruppa.net> In-Reply-To: <20050728202555.04233dd3.albi@scii.nl> References: <20050728202555.04233dd3.albi@scii.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Jul 2005, albi@scii.nl wrote:
>
> hi,
>
> been working on a script to add a samba-user, below an example which is
> not working, can someone provide the fix here to make it work properly ?
>
> #!/bin/sh
> adduser -G data -s scponly $1
> smbpasswd $1
Assuming you use samba3 something like
echo $PASSWORD | pw useradd $USER_NAME -g $GROUP -s /bin/sh \
-h fd -c "$REAL_NAME" -m
(echo $PASSWORD; echo $PASSWORD)| smbpasswd -s -a $USER_NAME)
should do.
Regards,
Uli.
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
*********************************************
* Peter Ulrich Kruppa - Wuppertal - Germany *
*********************************************
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050728211720.A48905>
