1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/nologin.md
2022-03-21 14:07:48 -03:00

349 B

nologin

Alternative shell that prevents a user from logging in. More information: https://manned.org/nologin.5.

  • 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