cron_diagnose.sh version 1.7

Harig, Mark maharig@idirect.net
Thu Jul 8 19:42:00 GMT 2004


> 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.

Thank you for the bug report.  I have changed the regular expression
match to look for an optional trailing '+' before the space.

Attached below is version 1.7 of this diagnostic script.

-------------------------------------------

cron_diagnose.sh will attempt to diagnose 
problems with cron.

It will not modify any files on your computer.

You might need to run the script several times.

Each time that it finds a problem, it stops and
displays a descriptive message.

Please read the messages that the script
generates, especially if it reports no errors,
but you still cannot get cron to work for you.

These messages should help you to report
problems that occur in setting up cron, and
possibly reduce the number of messages about
cron that need to be sent to the mailing list.

Please report the version number that this
script reports so that improvements can be
made to it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cron_diagnose.sh
Type: application/octet-stream
Size: 12304 bytes
Desc: cron_diagnose.sh
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040708/cbcf83d6/attachment.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list