From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 18:31:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E7BE16A41F for ; Wed, 14 Dec 2005 18:31:50 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9FD743D5D for ; Wed, 14 Dec 2005 18:31:43 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IRI006EL3GNZD40@VL-MO-MR002.ip.videotron.ca> for freebsd-questions@freebsd.org; Wed, 14 Dec 2005 13:31:37 -0500 (EST) Date: Wed, 14 Dec 2005 13:31:29 -0500 From: Nicolas Blais In-reply-to: <200512141744.05856.work@ashleymoran.me.uk> To: freebsd-questions@freebsd.org Message-id: <200512141331.34809.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart2733200.5nncThoZLY; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200512141744.05856.work@ashleymoran.me.uk> User-Agent: KMail/1.8.3 Cc: Ashley Moran Subject: Re: Problem adding user with pw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 18:31:50 -0000 --nextPart2733200.5nncThoZLY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D /bin,/usr/bin/,/usr/local/bin > shell =3D sh,csh,tcsh,bash > defaultshell =3D 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 =3D /usr/local/bin/bash =2D-=20 =46reeBSD 7.0-CURRENT #4: Sat Dec 10 11:55:08 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart2733200.5nncThoZLY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDoGUG4wTBlvcsbJURAoFdAJwNK+yRxL3ucVMwDW9MCOC0e3q/OwCgwyAZ JiPdl/X0/F1T05TmJm4g9sU= =Nrph -----END PGP SIGNATURE----- --nextPart2733200.5nncThoZLY--