nologin shell
A login shell that politely refuses interactive logins, used for accounts that run services.
In more detail
Setting an account's shell to /sbin/nologin lets it own files and run a daemon while nobody can log in as it. The program prints a refusal and exits.
Example
useradd -r -s /sbin/nologin svcbackup creates a service account nobody can log in as.Related terms
- useradd — The command that creates a user account.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
Taught in
- Logins, su, sudo And SSH Between Hosts — Red Hat Certified System Administrator (EX200) Exam Prep
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 1: Eighteen Tasks, One Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- Three Audit Findings And A Phone: Password Policy, Lockouts And MFA — CompTIA Linux+ (XK0-006) Exam Prep
- When awk Runs Out: Python Data Types, Modules And Virtual Environments For Admins — CompTIA Linux+ (XK0-006) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep
- Account Files: Every Answer Is A Field — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Privilege Escalation: sudo Rules And become — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: People, Passwords And sudo From The Vault — RHCE in Ansible (EX294): Automate Red Hat Systems