Re: Problem adding user with pw

2005-12-15 Thread Ashley Moran
On Wednesday 14 December 2005 19:56, Tofik Suleymanov wrote:
> maybe missing entry in /etc/shells ?


AGGGHHH!

I found the answer: shells is a comma-separated list; shellpath is a 
colon-separated list.

So my new /etc/pw.conf reads
shellpath /bin:/usr/bin:/usr/local/bin
shells sh,csh,tcsh,bash
defaultshell bash

And it all works fine.  Oh how I wish I read the man page fully before 
starting...

Ashley
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Problem adding user with pw

2005-12-14 Thread fbsd_user

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:
>
>   [EMAIL PROTECTED] cat /etc/pw.conf
>   shellpath = /bin,/usr/bin/,/usr/local/bin
>   shell = sh,csh,tcsh,bash
>   defaultshell = bash
>
>   [EMAIL PROTECTED] which bash
>   /usr/local/bin/bash
>
>but ...
>
>   [EMAIL PROTECTED] pw useradd testuser
>   pw: no default shell available or defined
>
>Does anyone know why I get this error message?
>
>
>Thanks
>Ashley
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>
>
maybe missing entry in /etc/shells ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tofik
Suleymanov
Sent: Wednesday, December 14, 2005 2:56 PM
To: Ashley Moran
Cc: freebsd-questions@freebsd.org
Subject: Re: Problem adding user with pw


On my 5.4 system I have no bash in /usr/local/bin or any place else.
I think you have to install bash shell from the ports.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem adding user with pw

2005-12-14 Thread Nicolas Blais
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:
>
>   [EMAIL PROTECTED] cat /etc/pw.conf
>   shellpath = /bin,/usr/bin/,/usr/local/bin
>   shell = sh,csh,tcsh,bash
>   defaultshell = bash
>
>   [EMAIL PROTECTED] which bash
>   /usr/local/bin/bash
>
> but ...
>
>   [EMAIL PROTECTED] 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 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpTHtRUtcsQw.pgp
Description: PGP signature


Re: Problem adding user with pw

2005-12-14 Thread Tofik Suleymanov

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:

[EMAIL PROTECTED] cat /etc/pw.conf
shellpath = /bin,/usr/bin/,/usr/local/bin
shell = sh,csh,tcsh,bash
defaultshell = bash

[EMAIL PROTECTED] which bash
/usr/local/bin/bash

but ...

[EMAIL PROTECTED] pw useradd testuser
pw: no default shell available or defined

Does anyone know why I get this error message?


Thanks 
Ashley

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

 


maybe missing entry in /etc/shells ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem adding user with pw

2005-12-14 Thread Ashley Moran
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:

[EMAIL PROTECTED] cat /etc/pw.conf
shellpath = /bin,/usr/bin/,/usr/local/bin
shell = sh,csh,tcsh,bash
defaultshell = bash

[EMAIL PROTECTED] which bash
/usr/local/bin/bash

but ...

[EMAIL PROTECTED] pw useradd testuser
pw: no default shell available or defined

Does anyone know why I get this error message?


Thanks 
Ashley
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"