← Back to Index

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
  1. First, login into the app server using SSH:
    ssh user@server-name
  2. Run the following command to create user with non-interactive shell:
    sudo useradd -s /sbin/nologin username
    -S: For Non-Interactive Shell
  3. Verify the result by running:
    cat /etc/passwd

Next: Day 2 →