Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2005 13:31:29 -0500
From:      Nicolas Blais <nb_root@videotron.ca>
To:        freebsd-questions@freebsd.org
Cc:        Ashley Moran <work@ashleymoran.me.uk>
Subject:   Re: Problem adding user with pw
Message-ID:  <200512141331.34809.nb_root@videotron.ca>
In-Reply-To: <200512141744.05856.work@ashleymoran.me.uk>
References:  <200512141744.05856.work@ashleymoran.me.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On December 14, 2005 12:44 pm, Ashley Moran wrote:
> Please forgive me if I've missed something obvious, but I've googled for
> this error and get no results.
>
> I want to add a new user with the pw command:
>
> 	root@alfie# cat /etc/pw.conf
> 	shellpath = /bin,/usr/bin/,/usr/local/bin
> 	shell = sh,csh,tcsh,bash
> 	defaultshell = bash
>
> 	root@alfie# which bash
> 	/usr/local/bin/bash
>
> but ...
>
> 	root@alfie# pw useradd testuser
> 	pw: no default shell available or defined
>
> Does anyone know why I get this error message?
>

Not sure, but since bash is a localy installed shell, try:

defaultshell = /usr/local/bin/bash

-- 
FreeBSD 7.0-CURRENT #4: Sat Dec 10 11:55:08 EST 2005     
root@clk01a:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDoGUG4wTBlvcsbJURAoFdAJwNK+yRxL3ucVMwDW9MCOC0e3q/OwCgwyAZ
JiPdl/X0/F1T05TmJm4g9sU=
=Nrph
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512141331.34809.nb_root>