Skip to content

Commit

Permalink
nologin: add page (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonanomi authored and schneiderl committed Apr 25, 2019
1 parent 3225195 commit 16c2b1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pages/linux/nologin.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit 16c2b1f

Please sign in to comment.