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 won't execute tasks



On Oct 28, 2004, at 6:04 PM, Larry Hall wrote:


At 08:22 PM 10/28/2004, you wrote:
Hello all,

This problem is driving me insane (I don't have far to go ;-).

Configuration:
Windows 2003 Enterprise Edition, quad processor, 12 GB RAM. Just downloaded Cygwin a few days ago. So, it should be the latest.


The possible root cause:
BTW, I am trying to run cron as a service.
Our IT person installed Cygwin under a domain account. Cron would run every minute but wouldn't switch user context. So, I had him re-install Cygwin under a new local account that was assigned to the Windows Administrators group.



In addition to what Igor said, make sure you've read
'/usr/share/doc/Cygwin/cron.README'. 'crond' won't be able to switch users
if your service isn't run as SYSTEM. Running it as a member of the Domain
Users and/or Administrators is of no value/use.

Actually, the only way I can get cron to execute tasks as a service is to indicate the login to be the current user. Otherwise, if I set it to allow the SYSTEM account to be used it will return an error in the system log indicating it couldn't switch user context.
Any ideas why?


Thanks!




-- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746


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



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


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