The main use is setting the program's path in the user's shell field. The
program itself has only --help and --version; every other invocation
always ends in refusal. Verify the local path before changing an account;
training examples use /usr/sbin/nologin.
Do not confuse the program with /etc/nologin and PAM-based login
restrictions. These are different interfaces. Use man 8 nologin for
documentation about the program specifically.
| Option |
What it does |
Example |
-h --help |
Print a short help text and exit (not the login refusal). |
/usr/sbin/nologin -h |
-V --version |
Print the program version and exit. |
/usr/sbin/nologin -V |
Nothing found. Try a shorter query.