mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 11:12:04 +00:00
Simplify the conditional statement to identify files which do NOT have read access for all.
This commit is contained in:
parent
4c025a7c9a
commit
d83a711a8b
@ -191,7 +191,7 @@ if [[ ${CHECK} -eq 1 ]]; then
|
||||
done
|
||||
|
||||
# Find files that have read permission missing for "all"
|
||||
MISSING_PERMISSION=`find $GSA/* -type f -not -perm 644 -a -type f -not -perm 645 -a -type f -not -perm 646 -a -type f -not -perm 647 -a -type f -not -perm 664 -a -type f -not -perm 665 -a -type f -not -perm 666 -a -type f -not -perm 667`
|
||||
MISSING_PERMISSION=`find $GSA/* -type f -not -perm -444`
|
||||
for file in $MISSING_PERMISSION; do
|
||||
echo "Verify permission for file: "
|
||||
echo " " $(ls -l $file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user