mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 00:01:03 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
17
tldr/linux/nologin
Normal file
17
tldr/linux/nologin
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nologin
|
||||
|
||||
> Alternative shell that prevents a user from logging in.
|
||||
> More information: <https://manned.org/nologin.5>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user