RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1277219 - nologin is included in /etc/shells
Summary: nologin is included in /etc/shells
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: setup
Version: 7.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2015-11-06 13:51:33 UTC
Target Upstream Version:
Embargoed:


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):
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.


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