forked from ansible-lockdown/RHEL9-CIS
added system account enhancement 5.4.2.7 thanks to @Thulium-Drake
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
44b712fdf9
commit
f02a9d442f
2 changed files with 6 additions and 0 deletions
|
|
@ -992,6 +992,11 @@ rhel9cis_futurepwchgdate_autofix: true
|
||||||
# 5.4.2.x
|
# 5.4.2.x
|
||||||
rhel9cis_root_umask: '0027' # 0027 or more restrictive
|
rhel9cis_root_umask: '0027' # 0027 or more restrictive
|
||||||
|
|
||||||
|
## Control 5.4.2.7 - 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.4.3.2 - Configuring user shell timeout
|
## Control 5.4.3.2 - Configuring user shell timeout
|
||||||
# This dictionary is related to ensuring the rule about user shell timeout
|
# This dictionary is related to ensuring the rule about user shell timeout
|
||||||
# This variable represents the amount of seconds a command or process is allowed to
|
# This variable represents the amount of seconds a command or process is allowed to
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,7 @@
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_4_2_7
|
- rhel9cis_rule_5_4_2_7
|
||||||
- "item.id not in prelim_interactive_usernames.stdout"
|
- "item.id not in prelim_interactive_usernames.stdout"
|
||||||
|
- item.id not in rhel9cis_system_users_shell
|
||||||
- "'root' not in item.id"
|
- "'root' not in item.id"
|
||||||
- rhel9cis_disruption_high
|
- rhel9cis_disruption_high
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue