Show non-root files on stig test
This commit is contained in:
parent
b654846c86
commit
b8a873f9d2
|
@ -7,6 +7,7 @@ if [ -d "/bin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /bin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -17,6 +18,7 @@ if [ -d "/usr/bin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /usr/bin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -27,6 +29,7 @@ if [ -d "/usr/local/bin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /usr/local/bin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -37,6 +40,7 @@ if [ -d "/sbin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /sbin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -47,6 +51,7 @@ if [ -d "/usr/sbin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /usr/sbin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -57,6 +62,7 @@ if [ -d "/usr/local/sbin" ];then
|
|||
if [ $COUNT -eq 0 ];then
|
||||
:
|
||||
else
|
||||
find -L /usr/local/sbin \! -user root -exec ls -l {} \;
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue