Bug 230650 - /sbin/nologin should not be in /etc/shells
/sbin/nologin should not be in /etc/shells
Status: CLOSED DUPLICATE of bug 70414
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: setup (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-03-01 17:13 EST by Jan "Yenya" Kasprzak
Modified: 2015-03-04 20:18 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-24 09:23:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan "Yenya" Kasprzak 2007-03-01 17:13:49 EST
Description of problem:
The /etc/shells file is often used by various programs to distinguish between
normal users and pseudoaccounts (see the shells(5) manpage for example). Yet the
default /etc/shells (at least in RHEL4 update 3 and Fedora Core 6) contains
/sbin/nologin, a shell dedicated for pseudoaccounts only. I think /etc/shells
should not contain /sbin/nologin as a valid shell, as this goes directly against
the purpose of both /etc/shells and /sbin/nologin. Or (as the worst possible
solution) the manpage of shells(5) should be corrected.

I am keeping the severity at "medium", but I think it might be a security bug,
as some daemons can mishandle pseudoaccount as a normal user account by looking
whether the account has shell which is listed in /etc/shells.

Version-Release number of selected component (if applicable):
setup-2.5.37-1.3 (and also setup-
Comment 1 Phil Knirsch 2007-03-09 11:07:55 EST

Read ya, Phil
Comment 2 Phil Knirsch 2007-05-24 09:23:41 EDT
/sbin/nologin is intentional and was introduced quite some time ago as a RFE
specifically for that purpose to have a valid shell that prevents user login.

See also https://bugzilla.redhat.com/bugzilla//show_bug.cgi?id=53963


Read ya, Phil

*** This bug has been marked as a duplicate of 70414 ***

Note You need to log in before you can comment on or make changes to this bug.