Hello,
I have FreeBSD 9.2. I have to big run every night of 110.neggrpperm.
I changed
to
which gives me this result:
but in log it is over 10000 files.
Where to find the problem?
Greetings
Todor Zahariev
I have FreeBSD 9.2. I have to big run every night of 110.neggrpperm.
Code:
echo 'Checking negative group permissions:'
MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'`
n=$(find -sx $MP /dev/null -type f \
\( \( ! -perm +010 -and -perm +001 \) -or \
\( ! -perm +020 -and -perm +002 \) -or \
\( ! -perm +040 -and -perm +004 \) \) \
-exec ls -liTd \{\} \+ | tee /dev/stderr | wc -l)
[ $n -gt 0 ] && rc=1 || rc=0
Code:
find -sx $MP /dev/null
Code:
n=$(find -sx /home/dragon/sites/root.fs /dev/null -type f \
Code:
Checking negative group permissions:
61245010 -rwxrw-r-x 1 root wheel 578 Apr 17 21:39:28 2010 /home/dragon/sites/root.fs/Backup/App/01/App2/hosting/shop/backup.sh
64622896 -rwxrw-r-x 1 root wheel 418 Aug 19 00:00:27 2009 /home/dragon/sites/root.fs/rdiff-backup-data/increments/System/BACKUP/shop/backup.old.sh.2013-08-29T01:31:01+03:00.snapshot.gz
64622897 -rwxrw-r-x 1 root wheel 318 Apr 19 11:59:55 2010 /home/dragon/sites/root.fs/rdiff-backup-data/increments/System/BACKUP/shop/backup.sh.2013-08-29T01:31:01+03:00.snapshot.gz
Where to find the problem?
Greetings
Todor Zahariev