Disable root shell

This commit is contained in:
Wojciech Kozlowski 2022-09-11 20:00:08 +02:00
parent ab0da8109a
commit e6d675333d

View File

@ -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