You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Linux User Account Incorrectly Set to "nologin"

edited Jun 6, 2023 2:50AM in Linux

A local user account on a Linux instance was configured to use the nologin shell in error, as the user account needs to be able to log in to the Linux instance.

Attempting to log in or su to the local user account fails with an error that the account is currently not available, such as in the following example:

# su UserTest

This account is currently not available.

The following command shows UserTest's shell is set to nologin:

# cat /etc/passwd | grep UserTest

UserTest:x:502:502::/home/UserTest:/usr/sbin/nologin

Note: Some user accounts are system accounts for the operating system, and are set to use the nologin shell by default. There is no need to change them, unless it is required for specific reasons.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!