TCAT-AS-001050 - Tomcat user account must be set to nologin.

Information

When installing Tomcat, a user account is created on the OS. This account is used in order for Tomcat to be able to operate on the OS but does not require the ability to actually log in to the system. Therefore when the account is created, the account must not be provided access to a login shell or other program on the system. This is done by specifying the 'nologin' parameter in the command/shell field of the passwd file.

Solution

From the Tomcat command line type the following command:

sudo usermod -s /usr/sbin/nologin tomcat

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V3R3_STIG.zip