Objective
Create a user with non-interactive shell for your organization on a specific server. This is essential for service accounts and automated processes that don’t require interactive login capabilities.
Steps
- First, login into the app server using
SSH:ssh user@server-name - Run the following command to create user with non-interactive shell:
sudo useradd -s /sbin/nologin username-S: For Non-Interactive Shell - Verify the result by running:
cat /etc/passwd