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 1277197 - tomcat user has non-existing default shell set
Summary: tomcat user has non-existing default shell set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tomcat
Version: 7.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Coty Sutherland
QA Contact: fgoldefu
Lenka Špačková
URL:
Whiteboard:
: 1315858 1343207 1365885 (view as bug list)
Depends On:
Blocks: 1298191 1313485 1386238
TreeView+ depends on / blocked
 
Reported: 2015-11-02 16:18 UTC by Marek Haicman
Modified: 2019-10-10 10:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Newly installed _tomcat_ package has a correct shell pointing to `/sbin/nologin` Previously, the postinstall script set the Tomcat shell to `/bin/nologin`, which does not exist. Consequently, users failed to get a helpful message about the login access denial when attempting to log in as Tomcat user. This bug has been fixed, and the postinstall script now corectly sets the Tomcat shell to `/sbin/nologin`.
Clone Of:
: 1386238 (view as bug list)
Environment:
Last Closed: 2016-11-03 21:09:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1302718 0 unspecified CLOSED user 'tomcat': program '/bin/nologin' does not exist 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2016:2599 0 normal SHIPPED_LIVE Moderate: tomcat security, bug fix, and enhancement update 2016-11-03 12:12:12 UTC

Description Marek Haicman 2015-11-02 16:18:58 UTC
Description of problem:
Default shell for tomcat user is set as /bin/nologin. This binary is not present on RHEL machines, there is /sbin/nologin or /usr/sbin/nologin

Version-Release number of selected component (if applicable):
tomcat-7.0.54-2.el7_1

How reproducible:
reliably

Steps to Reproduce:
1. Install tomcat (or whichever package creates the user)
2. getent passwd tomcat | cut -d: -f7


Actual results:
/bin/nologin

Expected results:
/sbin/nologin

Comment 1 Michal Karm Babacek 2015-11-03 11:09:59 UTC
@Jan Stourac: Are we affected in JWS?

Comment 2 Jan Stourac 2015-11-24 07:14:26 UTC
@Michal: I've just checked - JWS is safe using /sbin/nologin executable when creating a new user (both for Tomcat 7 and Tomcat 8).

Comment 3 Coty Sutherland 2016-03-08 19:24:09 UTC
*** Bug 1315858 has been marked as a duplicate of this bug. ***

Comment 5 Coty Sutherland 2016-06-06 20:33:19 UTC
*** Bug 1343207 has been marked as a duplicate of this bug. ***

Comment 9 Coty Sutherland 2016-08-10 12:20:01 UTC
*** Bug 1365885 has been marked as a duplicate of this bug. ***

Comment 10 Jan Onderka 2016-10-17 14:36:59 UTC
Change doesn't take effect if <tomcat> user is already created by preview RPMs. There should be test if <tomcat> user exists and if so <usermod -s /sbin/nologin tomcat> should be used.

Comment 11 Jan Onderka 2016-10-18 13:10:04 UTC
1386238 follow up issue

Comment 15 errata-xmlrpc 2016-11-03 21:09:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2599.html


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