This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Cron Issue

----- Original Message ----- 
From: "Barnhart Jay" <>
To: <cygwin>
Sent: Monday, August 13, 2007 11:02 AM
Subject: RE: Cron Issue

Here is the cronbug dump....I deleted a lot of the event log history to
reduce the size....It's all the same error over and over again since
it's running every 5 minutes...


The main error messages are
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (dsorftpt_edms) CMD 
(/home/dsorftpt_edms/mmis/ >> $HOME/mmis/cron.log)
2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (CRON) error (can't switch user context)

The problem is simply that you are running the cron daemon as SYSTEM on a Windows 2003 machine.
Unfortunately on Windows 2003 SYSTEM does not have the privilege to setuid.
This is indicated plainly in the cron-config script, which offers to create a privilege server. 
You seem to have
done so because /var/log/cron.log is owned by cron_server.
I have no idea why your cron daemon is now running as SYSTEM.

Once the service has been created (under SYSTEM or any other user name), simply checks that the various permissions are OK for
cron to run, it doesn't give any additional warnings if you are on
Windows 2003.

You should run cron-config again and reinstall the service.

You have one other problem with the Administrator crontab:
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (CRON) STARTUP (V5.0)
2007/08/13 06:22:39 [SYSTEM] /usr/sbin/cron: PID 3156: (Administrator) WRONG FILE OWNER 

That crontab is ignored by cron, only the one for dsorftpt_edms is taken into account.

That error is weird because ls -l shows

-rw-r----- 1 Administrator Administrators 248 Aug 10 12:21 /var/cron/tabs/Administrator
Do you have several Administrator in /etc/passwd?


Unsubscribe info:
Problem reports:

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