tldr/pages/linux/nologin.md

13 lines
349 B
Markdown
Raw Normal View History

2019-04-25 21:51:30 +01:00
# nologin
> Alternative shell that prevents a user from logging in.
> More information: <https://manned.org/nologin.5>.
2019-04-25 21:51:30 +01:00
- 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`