This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FW: Cron jobs won't run


I followed instructions below but I am now having problems writing and/or
creating the 'Administrator' crontab file.  It is giving me 'writing
/tmp/cron135 permission denied' responses.  I even changed all permissions
on the /tmp and /var/cron directories so that Administrator could write to
it after it didn't seem to work with SYSTEM owning those directories.  Any


-----Original Message-----
From: Headley, Kent []
Sent: Monday, August 20, 2001 7:23 PM
To: Cioffari, Joseph
Subject: Re: Cron jobs won't run 

hello joe,

I had this problem as well; I do know that part of the solution is to
install cron using
cygrunsrv -I cron -p /usr/sbin/cron.exe -a -D -e "CYGIWIN=tty ntsec"
and/or defining 'CYGWIN=tty ntsec' in your NT environment variables.
Another problem that I encountered was that the directory /var/cron/tabs
must be created by the cron service to make sure that all of the permissions
work correctly. Note that crontab will also create this directory if it
doesn't exist, but will not set the owner, group or permissions correctly.
To make this work correctly, first remove the /var/cron and all below it:
rm -Rf /var/cron
and then start the cron service (it will automatically create
/var/cron/tabs, owned by SYSTEM)
cygrunsrv -S cron
Only now is it safe to run crontab to install, remove or edit cron jobs.
I hope this helps.

Kent Headley

Software Engineer
Research & Development Division

7700 Sandholdt Road
Moss Landing, CA 95039-0628

Tel: 831.775.1822
Fax: 831.775.1645

"If at first the idea is not absurd, then there is no hope for it." - Albert

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]