123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/bin/bash
-
- if [ -d "/lib" ];then
-
- COUNT=$(find -L /lib -type f -perm /022 -exec ls -l {} \; |wc -l)
-
- if [ $COUNT -eq 0 ];then
- :
- else
- find -L /lib -type f -perm /022 -exec ls -l {} \;
- exit 1
- fi
- fi
- if [ -d "/lib64" ];then
-
- COUNT=$(find -L /lib64 -type f -perm /022 -exec ls -l {} \; |wc -l)
-
- if [ $COUNT -eq 0 ];then
- :
- else
- find -L /lib64 -type f -perm /022 -exec ls -l {} \;
- exit 1
- fi
- fi
- if [ -d "/usr/lib" ];then
-
- COUNT=$(find -L /usr/lib -type f -perm /022 -exec ls -l {} \; |wc -l)
-
- if [ $COUNT -eq 0 ];then
- :
- else
- find -L /usr/lib -type f -perm /022 -exec ls -l {} \;
- exit 1
- fi
- fi
- if [ -d "/usr/lib64" ];then
-
- COUNT=$(find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \; |wc -l)
-
- if [ $COUNT -eq 0 ];then
- :
- else
- find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \;
- exit 1
- fi
- fi
-
- exit 0
|