Bug 1277219

Summary: nologin is included in /etc/shells
Product: Red Hat Enterprise Linux 7 Reporter: Marek Haicman <mhaicman>
Component: setupAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 7.2   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-06 13:51:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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):
setup-2.8.71-6.el7

How reproducible:
reliably

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


Actual results:
/sbin/nologin
/usr/sbin/nologin


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.