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