This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cron_diagnose.sh version 1.6
Harig, Mark wrote:
Please report the version number that this
script reports so that improvements can be
made to it.
v1.6: permission fail for /etc/passwd:
for fname in /etc/passwd /etc/group; do
/usr/bin/ls -ld $fname | egrep -q '^-r..r..r.. ';
if [ $? -ne 0 ]; then
echo "The permissions on the file $fname are not correct."
echo "Please run 'chmod +r $fname', and run this script again."
return 1
fi
done
I have "-rw-r--r--+" which should be checked. Or is it a new requirement
that no extended ACL must be defined? To my knowledge not.
So please delete the last space in the regex.
Without the space it runs fine.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/