From 2e33bfa163699b4385ea34f77f1b4602ade2a50f Mon Sep 17 00:00:00 2001 From: Alan Moore Date: Thu, 9 Jan 2025 10:15:01 +0000 Subject: [PATCH] Add check none_exist --- .../root_logins/accounts_root_gid_zero/oval/shared.xml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml index f1b3ed4a1d4f..1acc77321a8d 100644 --- a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml +++ b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml @@ -26,19 +26,14 @@ {{% if 'ubuntu' in product %}} - + - /etc/passwd - ^(?!\b(root|sync|shutdown|halt|operator)\b).+:.+:\d+:(\d+).+ + ^(?!\b(root|sync|shutdown|halt|operator)\b).+:.+:\d+:0:.+$ 1 - - - 0 - {{% endif %}}