mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
12 lines
297 B
Markdown
12 lines
297 B
Markdown
|
# nologin
|
||
|
|
||
|
> Alternative shell that prevents a user from logging in.
|
||
|
|
||
|
- Set a user's login shell to `nologin` to prevent the user from logging in:
|
||
|
|
||
|
`chsh -s {{user}} nologin`
|
||
|
|
||
|
- Customize message for users with the login shell of `nologin`:
|
||
|
|
||
|
`echo "{{declined_login_message}}" > /etc/nologin.txt`
|