From 16c2b1f24279f9670facd5164c16d4a650a24e8c Mon Sep 17 00:00:00 2001 From: lbonanomi <5369016+lbonanomi@users.noreply.github.com> Date: Thu, 25 Apr 2019 16:51:30 -0400 Subject: [PATCH] nologin: add page (#2943) --- pages/linux/nologin.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/linux/nologin.md diff --git a/pages/linux/nologin.md b/pages/linux/nologin.md new file mode 100644 index 0000000000..4120b09b39 --- /dev/null +++ b/pages/linux/nologin.md @@ -0,0 +1,11 @@ +# 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`