delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/29/12:22:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20041029121703.0408bb98@pop.prospeed.net>
X-Sender:
Date: Fri, 29 Oct 2004 12:19:26 -0400
To: Robert Pollard <rpollard AT apple DOT com>, Cygwin List <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: cron won't execute tasks
In-Reply-To: <F2CA2C01-29C5-11D9-A584-000A957A7EA8@apple.com>
References: <9F0386F4-2940-11D9-A394-000A957A7EA8 AT apple DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041028210009 DOT 041b5d38 AT pop DOT prospeed DOT net> <F2CA2C01-29C5-11D9-A584-000A957A7EA8 AT apple DOT com>
Mime-Version: 1.0

At 12:16 PM 10/29/2004, you wrote:

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


Well, you can read the note about W2K3 in 
/usr/share/doc/Cygwin/openssh.README.  You may want to try that procedure.
But I suppose if you're only using cron as the using you're running the 
service as, then going the "SYSTEM" route isn't required, other than it
being an interesting/worthwhile data point for you.



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019