Skip to content

Commit

Permalink
Merge pull request #253 from Thulium-Drake/fix_245
Browse files Browse the repository at this point in the history
Added a means to allow system users to have a shell
  • Loading branch information
uk-bolly authored Nov 11, 2024
2 parents b64ce56 + 28a3596 commit 87c1f6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tasks/section_5/cis_5.6.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 87c1f6e

Please sign in to comment.