Bug 1277219 - nologin is included in /etc/shells
Summary: nologin is included in /etc/shells
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: setup
Version: 7.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
Depends On:
TreeView+ depends on / blocked
Reported: 2015-11-02 17:23 UTC by Marek Haicman
Modified: 2015-11-06 13:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-11-06 13:51:33 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Marek Haicman 2015-11-02 17:23:21 UTC
Description of problem:
/etc/shells contains /sbin/nologin and /usr/sbin/nologin . By including these, it is possible to switch to such user with 'su' command with login override. That behaviour is not intuitive result of setting nologin for a user.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. grep nologin /etc/shells

Actual results:

Expected results:
No output

Comment 1 Ondrej Vasik 2015-11-02 20:16:06 UTC
Thanks for information, however, you are not the first one reporting it. See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=70414 , https://bugzilla.redhat.com/show_bug.cgi?id=230650.
Actually, /sbin/nologin was added as request by https://bugzilla.redhat.com/show_bug.cgi?id=53963 . I believe, without further discussion, this has to be closed not a bug. Feel free to discuss potential risk caused by this /etc/shells entry on fedora devel list and add a pointer to the mail thread into this bugzilla. Without further discussion, I will close this request NOTABUG.

Comment 2 Marek Haicman 2015-11-03 09:23:34 UTC
Thanks Ondrej for the clarification, sorry for my weak search-fu. I agree we can close it for now.

I will just put here, for future reference, another bug related to this... https://bugzilla.redhat.com/show_bug.cgi?id=1218302

Comment 3 Ondrej Vasik 2015-11-06 13:51:33 UTC
Ok, thanks for annother cross-component bugzilla reference. Closing NOTABUG for now.

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