Browse Source

nologin: add page (#2943)

lbonanomi 5 năm trước cách đây
mục cha
commit
16c2b1f242
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      pages/linux/nologin.md

+ 11 - 0
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`