Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Mime-Version: 1.0 (Apple Message framework v619)
In-Reply-To: <6.1.0.6.0.20041028210009.041b5d38@pop.prospeed.net>
References: <9F0386F4-2940-11D9-A394-000A957A7EA8@apple.com> <6.1.0.6.0.20041028210009.041b5d38@pop.prospeed.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <F2CA2C01-29C5-11D9-A584-000A957A7EA8@apple.com>
Content-Transfer-Encoding: 7bit
From: Robert Pollard <rpollard@apple.com>
Subject: Re: cron won't execute tasks
Date: Fri, 29 Oct 2004 09:16:54 -0700
To: Cygwin List <cygwin@cygwin.com>
X-IsSubscribed: yes


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/

