To accommodate the backup agent tool's specifications, the system admin team at xFusionCorp Industries requires the creation of a user with a non-interactive shell.
- Create a user named
james
with a non-interactive shell on App Server 1.
- Log in to App Server 1:
ssh your_username@app_server_1_ip
- Check if the User Exists:
id jarod
- Create the User with a Non-Interactive Shell:
sudo useradd -s /sbin/nologin james
- Verify the User Creation:
id james grep james /etc/passwd
- Command Explanation:
sudo: Execute the command with administrative privileges. useradd: Add a new user. -s /sbin/nologin: Set the user's shell to /sbin/nologin, which is a non-interactive shell. james: The username of the new user.
- Difference between Interactive and Non-Interactive Shells"