[KLUG Members] gnome users in a one app prison

Bruce Smith members@kalamazoolinux.org
09 Jul 2003 08:53:04 -0400


> >>>>>/bin/false rulez!
> >>>>Yes, but things have advanced.  See:  /sbin/nologin  nologin(8)
> >>>>That way you can display custom nasty messages to the user when 
> >>>>they try to login.  :-)
> >>>>And it's already in /etc/shells, so you don't need to add it 
> >>>>(for FTP logins).
> >>>>| What version of redhat was this introduced in?
> >>>Idon't know exactly.  It exists on my Redhat 9, 8.0 and 7.3 boxes.
> >>It isn't listed in /etc/shells (which I never use 'cause we are LDAPified)
> >>on my RedHat 7.1 box.
> >Does /sbin/nologin exist on 7.1?
> 
> ls [root@littleboy /root]# ls -l /sbin/nologin
> ls: /sbin/nologin: No such file or directory
> [root@littleboy /root]# whereis nologin
> nologin: /usr/share/man/man5/nologin.5.gz

OK, nologin(5) is different than nologin(8).  To clarify:

nologin(5) is the file "/etc/nologin" to reject all logins.

nologin(8) is a program used as a shell to reject certain logins.
(with a custom reject message)

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------