>From 3dcd3afa28c00d5bb6fa281a5392bbdffe2c3e92 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Sun, 10 Nov 2013 00:59:29 -0500 Subject: [PATCH 04/11] Updated OVAL + remediation for accounts_no_uid_except_zero - Updating naming scheme to reflect accounts_* for consistency - Added remediation script which will disable any UID=0 accounts other than root. The OVAL will continue to fail, however automatically reassigning UIDs seems dirty... --- .../fixes/bash/accounts_no_uid_except_zero.sh | 1 + RHEL6/input/profiles/CS2.xml | 2 +- RHEL6/input/profiles/common.xml | 2 +- RHEL6/input/profiles/fisma-medium-rhel6-server.xml | 2 +- RHEL6/input/profiles/nist-CL-IL-AL.xml | 2 +- RHEL6/input/profiles/rht-ccp.xml | 2 +- RHEL6/input/profiles/usgcb-rhel6-server.xml | 2 +- .../system/accounts/restrictions/root_logins.xml | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 RHEL6/input/fixes/bash/accounts_no_uid_except_zero.sh diff --git a/RHEL6/input/fixes/bash/accounts_no_uid_except_zero.sh b/RHEL6/input/fixes/bash/accounts_no_uid_except_zero.sh new file mode 100644 index 0000000..7a052ec --- /dev/null +++ b/RHEL6/input/fixes/bash/accounts_no_uid_except_zero.sh @@ -0,0 +1 @@ +awk -F: '$3 == 0 && $1 != "root" { print $1 }' /etc/passwd | xargs passwd -l diff --git a/RHEL6/input/profiles/CS2.xml b/RHEL6/input/profiles/CS2.xml index 3958779..302cf5b 100644 --- a/RHEL6/input/profiles/CS2.xml +++ b/RHEL6/input/profiles/CS2.xml @@ -76,7 +76,7 @@ + - diff --git a/RHEL6/input/profiles/fisma-medium-rhel6-server.xml b/RHEL6/input/profiles/fisma-medium-rhel6-server.xml index 558ae63..318fdee 100644 --- a/RHEL6/input/profiles/fisma-medium-rhel6-server.xml +++ b/RHEL6/input/profiles/fisma-medium-rhel6-server.xml @@ -67,7 +67,7 @@ + diff --git a/RHEL6/input/profiles/nist-CL-IL-AL.xml b/RHEL6/input/profiles/nist-CL-IL-AL.xml index f633f5e..82ee2a1 100644 --- a/RHEL6/input/profiles/nist-CL-IL-AL.xml +++ b/RHEL6/input/profiles/nist-CL-IL-AL.xml @@ -156,7 +156,7 @@ assurance." + - -