thanks, John

<quote who="John Clarke">
> On Fri, Jul 29, 2005 at 09:42:50 +1000, Voytek wrote:

> I'd use /sbin/nologin instead, but whatever you use, make sure it's
> listed in /etc/shells.

I have these in /etc/shells:

/bin/sh
/bin/bash
/sbin/nologin
/bin/bash2
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
/bin/false

looking at /etc/passwd, it seems all current 'web' users have
'/bin/false', and, some 'service users' (like clam) have '/sbin/nologin'

>> how do I set the 'no shell' part as a defualt for future users ?
>
> Edit /etc/default/useradd.

currently have this:
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel


>> how can I verify the 'no shell' is set (apart from trying to ssh login
>> (as
>>
>
> Look in /etc/passwd.  The last field on each line is the shell, e.g.:
>
>
> johnc:x:500:500:John Clarke:/home/johnc:/bin/bash

can I edit /etc/passwd directly ? to alter home path ? shell ?

thanks again
-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to