2016-11-29 13:37:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -d "/lib" ];then
|
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
COUNT=$(find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null' | wc -l)
|
|
|
|
|
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null'
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
if [ -d "/lib64" ];then
|
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
COUNT=$(find -L /lib64 \! -user root -exec ls -l {} \; |wc -l)
|
2016-11-29 13:37:48 +01:00
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
find -L /lib64 \! -user root -exec ls -l {} \;
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
if [ -d "/usr/lib" ];then
|
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
COUNT=$(find -L /usr/lib \! -user root -exec ls -l {} \; |wc -l)
|
2016-11-29 13:37:48 +01:00
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
find -L /usr/lib \! -user root -exec ls -l {} \;
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
if [ -d "/usr/lib64" ];then
|
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
COUNT=$(find -L /usr/lib64 \! -user root -exec ls -l {} \; |wc -l)
|
2016-11-29 13:37:48 +01:00
|
|
|
|
2018-01-07 12:22:47 +01:00
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
find -L /usr/lib64 \! -user root -exec ls -l {} \;
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|