diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-03-23 12:44:45 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2020-03-23 12:44:45 +0300 |
commit | 17ac4d2c1cfc1aa8432401cae834779874d3e734 (patch) | |
tree | 7d852f0e663a130540c34974db88f2686509f106 /include | |
parent | a067c4211afbf8ced99e20de9b13e8c8526ea9fa (diff) |
[AUTH-9252] corrected permission check
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_authentication | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index f0b61ba2..d3f9d3aa 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -509,7 +509,7 @@ if [ -d "${SUDOERS_D}" ]; then LogText "Test: checking drop-in directory (${SUDOERS_D})" FIND=$(${LSBINARY} -ld ${SUDOERS_D} | ${CUTBINARY} -c 2-10) - FIND2=$(${LSBINARY} -nd ${SUDOERS_D} | ${AWKBINARY} '{print $3$4}') + FIND2=$(${LSBINARY} -lnd ${SUDOERS_D} | ${AWKBINARY} '{print $3$4}') LogText "Result: Found directory permissions: ${FIND} and owner UID GID: ${FIND2}" case "${FIND}" in rwx[r-][w-][x-]--- ) @@ -537,7 +537,7 @@ for f in ${SUDO_CONFIG_FILES}; do LogText "Test: checking file (${f})" FIND=$(${LSBINARY} -l ${f} | ${CUTBINARY} -c 2-10) - FIND2=$(${LSBINARY} -n ${f} | ${AWKBINARY} '{print $3$4}') + FIND2=$(${LSBINARY} -ln ${f} | ${AWKBINARY} '{print $3$4}') LogText "Result: Found file permissions: ${FIND} and owner UID GID: ${FIND2}" case "${FIND}" in r[w-]-[r-][w-]---- ) |