Show non-root files on stig test
This commit is contained in:
parent
b654846c86
commit
b8a873f9d2
|
@ -2,61 +2,67 @@
|
||||||
|
|
||||||
if [ -d "/bin" ];then
|
if [ -d "/bin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /bin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /bin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /bin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/usr/bin" ];then
|
if [ -d "/usr/bin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /usr/bin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /usr/bin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /usr/bin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/usr/local/bin" ];then
|
if [ -d "/usr/local/bin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /usr/local/bin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /usr/local/bin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /usr/local/bin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/sbin" ];then
|
if [ -d "/sbin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /sbin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /sbin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /sbin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/usr/sbin" ];then
|
if [ -d "/usr/sbin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /usr/sbin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /usr/sbin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /usr/sbin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/usr/local/sbin" ];then
|
if [ -d "/usr/local/sbin" ];then
|
||||||
|
|
||||||
COUNT=$(find -L /usr/local/sbin \! -user root -exec ls -l {} \; |wc -l)
|
COUNT=$(find -L /usr/local/sbin \! -user root -exec ls -l {} \; |wc -l)
|
||||||
|
|
||||||
if [ $COUNT -eq 0 ];then
|
if [ $COUNT -eq 0 ];then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
exit 1
|
find -L /usr/local/sbin \! -user root -exec ls -l {} \;
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue