Date: Thu, 28 Jul 2005 14:12:13 -0500 From: Chris Haulmark <chris@sigd.net> To: Glenn Dawson <glenn@antimatter.net> Cc: "albi@scii.nl" <albi@scii.nl>, freebsd-questions@freebsd.org Subject: Re: script for adding a samba-user Message-ID: <1122577933.84295.10.camel@localhost> In-Reply-To: <6.1.0.6.2.20050728114812.1bbe0c70@cobalt.antimatter.net> References: <20050728202555.04233dd3.albi@scii.nl> <6.1.0.6.2.20050728114812.1bbe0c70@cobalt.antimatter.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2005-07-28 at 12:02 -0700, Glenn Dawson wrote: > At 11:25 AM 7/28/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 ? > > It's difficult to help since you didn't provide a description of the > problem beyond "not working". > > Taking a guess, I'd say that your problem is related to your use of the -s > option to adduser. That option specifies the shell for the user you are > trying to add. Even if you have a shell called "scponly" you would need to > include the full path to that shell. I also suspect not using -a for smbpasswd to add a new user. Someone needs to read up on the manpages for those commands. Chris > > -Glenn > > > >#!/bin/sh > >adduser -G data -s scponly $1 > >smbpasswd $1 > > > >_______________________________________________ > >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" > > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1122577933.84295.10.camel>