Control nologin - Prevent User Logins | Online Free DevTools by Hexmos
Control user logins with nologin. Secure your system by preventing user access and customizing login messages. Free online tool, no registration required.
nologin
Alternative shell that prevents a user from logging in. More information: https://manned.org/nologin.5.
- Set a user’s login shell to
nologinto prevent the user from logging in:
chsh {{[-s|--shell]}} {{user}} nologin
- Customize message for users with the login shell of
nologin:
echo "{{declined_login_message}}" > /etc/nologin.txt
