diff --git a/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/oval/shared.xml b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/oval/shared.xml index 724b916cd0d..8dfc24a1b93 100644 --- a/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/oval/shared.xml +++ b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/oval/shared.xml @@ -6,19 +6,13 @@ - - .* - state_accounts_users_home_forward_file_existance_interactive_gids - - - - {{{ gid_min }}} - + {{%- set interactive_users_object = "object_" ~ rule_id ~ "_objects" -%}} + {{{ create_interactive_users_list_object(interactive_users_object) }}} + object_ref="{{{ interactive_users_object }}}"/> diff --git a/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/tests/interactive_user_nologin_ignored.pass.sh b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/tests/interactive_user_nologin_ignored.pass.sh new file mode 100644 index 00000000000..f0b620139d4 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_forward_files/tests/interactive_user_nologin_ignored.pass.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# remediation = none + +USER="cac_user" +useradd -m -s /sbin/nologin $USER +touch /home/$USER/.forward