Disable root shell
This commit is contained in:
parent
ab0da8109a
commit
e6d675333d
@ -440,3 +440,12 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
# On first tmux launch install plugins with <Ctrl + a + I>
|
# On first tmux launch install plugins with <Ctrl + a + I>
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------------------------
|
||||||
|
# Set the root's shell to nologin.
|
||||||
|
# ----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- name: Disable root shell
|
||||||
|
user:
|
||||||
|
name: root
|
||||||
|
shell: /usr/sbin/nologin
|
||||||
|
Loading…
Reference in New Issue
Block a user