----- 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... ************ Jay, The main error messages are 2007/08/13 06:45:01 [SYSTEM] /usr/sbin/cron: PID 636: (dsorftpt_edms) CMD (/home/dsorftpt_edms/mmis/test.sh >> $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), cron_diagnose.sh 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 (tabs/Administrator) 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? Pierre -- 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/