mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
nologin: add page (#2943)
This commit is contained in:
parent
322519512b
commit
16c2b1f242
1 changed files with 11 additions and 0 deletions
11
pages/linux/nologin.md
Normal file
11
pages/linux/nologin.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue