Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
editing paths for binaries in 5.11 to be consistent with the rest of the script.
  • Loading branch information
krispayne authored Dec 1, 2016
1 parent b4866fa commit c0bf550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElCapitan_CIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -727,11 +727,11 @@ systemAccess() {
# 5.11 Disable ability to login to another user's active and locked session
# Level 1 Scored

if [[ $(grep -ic "group=admin,wheel fail_safe" /etc/pam.d/screensaver) -eq 0 ]]; then
if [[ $(/usr/bin/grep -ic "group=admin,wheel fail_safe" /etc/pam.d/screensaver) -eq 0 ]]; then
ScriptLogging " Admins disabled from unlocking other users sessions."
else
ScriptLogging " Admins allowed to unlock other users sessions...."
sed -i.bak s/admin,//g /etc/pam.d/screensaver
/usr/bin/sed -i.bak s/admin,//g /etc/pam.d/screensaver
ScriptLogging " Admins disabled from unlocking other users sessions."
fi

Expand Down

0 comments on commit c0bf550

Please sign in to comment.