Red Hat Bugzilla – Bug 1277197
tomcat user has non-existing default shell set
Last modified: 2016-11-03 17:09:33 EDT
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
@Jan Stourac: Are we affected in JWS?
@Michal: I've just checked - JWS is safe using /sbin/nologin executable when creating a new user (both for Tomcat 7 and Tomcat 8).
*** Bug 1315858 has been marked as a duplicate of this bug. ***
*** Bug 1343207 has been marked as a duplicate of this bug. ***
*** Bug 1365885 has been marked as a duplicate of this bug. ***
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.
1386238 follow up issue
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