From owner-freebsd-questions Wed Dec 8 18:44:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.securify.com (relay.securify.com [207.5.63.61]) by hub.freebsd.org (Postfix) with SMTP id CEBB314BFE for ; Wed, 8 Dec 1999 18:44:37 -0800 (PST) (envelope-from jill@securify.com) Received: by relay.securify.com; id SAA06568; Wed, 8 Dec 1999 18:43:39 -0800 Received: from unknown(10.5.63.6) by relay.securify.com via smap (V5.5) id xma006519; Wed, 8 Dec 99 18:43:15 -0800 Received: from securify.com (vg-49.securify.com [10.5.63.49]) by dude.securify.com (8.8.7/8.8.7) with ESMTP id SAA22212; Wed, 8 Dec 1999 18:43:14 -0800 Message-ID: <384F174F.3DEF7377@securify.com> Date: Wed, 08 Dec 1999 18:43:27 -0800 From: Jill R Pelavin Reply-To: jill@securify.com Organization: isg X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Chen , freebsd-questions@freebsd.org, tomb@securify.com Subject: Re: pw problem- can't get it to work References: <384F0D99.492DD70@securify.com> <19991209152338.B12088@jonc.logisticsoftware.co.nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG that was the problem. I changed that line in the config file to be : shellpath = "/bin" which it was originally, and I cp'ed bash to be in /bin, and now pw works! thanks, jonathan I think you are right about it stopping its tracks upon encountering any error. goodnight -Jill -------- Jonathan Chen wrote: > On Wed, Dec 08, 1999 at 06:02:01PM -0800, Jill R Pelavin wrote: > > > I'm trying to use pw to add users (as I want to call this in a > > script) and I am experimenting with it on the command line. > > > > for example, I have typed: > > > > # pw useradd jill -m -s bash > > > > the output I get is: Password for jill is: anaoentuhaotuenh > > pw: no default shell available or > > defined > [...] > > I think it stops in its tracks on any error.. > > > does anybody know why this is happening? my pw.conf file, which is > > located in /etc, is included below > > [...] > > # Colon separated list of directories containing valid shells > > shellpath = "/bin","usr/local/bin" > ^^^^^^^^^^^^^ > I think this should read: > > shellpath = "/bin","/usr/local/bin" > > Cheers. > -- > Jonathan Chen Once is dumb luck. > Twice is coincidence. > Three times and Somebody Is Trying To Tell You Something. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message