mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Added a means to allow system users to have a shell
Signed-off-by: Jeffrey van Pelt <jeff@vanpelt.one>
This commit is contained in:
parent
3c75296d91
commit
28a35960d7
2 changed files with 6 additions and 0 deletions
|
|
@ -1137,6 +1137,11 @@ rhel9cis_force_user_mindays: false
|
|||
# This can break current connecting user access
|
||||
rhel9cis_force_user_warnage: false
|
||||
|
||||
## Control 5.6.2 - Ensure system accounts are secured | Set nologin
|
||||
# The system users on this list are allowed to have a shell (e.g. applications
|
||||
# that require a shell to function)
|
||||
rhel9cis_system_users_shell: []
|
||||
|
||||
## Control 5.6.3 - Ensure default user shell timeout is 900 seconds or less
|
||||
# Session timeout setting file (TMOUT setting can be set in multiple files)
|
||||
# Timeout value is in seconds. (60 seconds * 10 = 600)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
- item.id != "shutdown"
|
||||
- item.id != "halt"
|
||||
- item.id != "nfsnobody"
|
||||
- item.id not in rhel9cis_system_users_shell
|
||||
- item.uid < min_int_uid | int
|
||||
- item.shell != "/bin/false"
|
||||
- item.shell != "/usr/sbin/nologin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue