X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kevin M Subject: Re: Event viewer application error? Date: Thu, 10 Jul 2008 07:16:43 -0400 Lines: 36 Message-ID: References: <4873B6DA DOT 6040203 AT cygwin DOT com> Reply-To: kmarkle AT pbs DOT org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Larry Hall (Cygwin) presented the following explanation : > Kevin M wrote: >> Hello, >> I'm getting this error. >>> >> /AUXSOURCE= flag to retrieve this description; see Help and Support for >> details. The following information is part of the event: /usr/sbin/cron: >> PID 2784: (CRON) error (can't switch user context). >>> >> I checked and found something that said to add execute permsisions to the >> cygwin1.dll and give permissions to /etc/cron.d. This has not worked if >> anybody has any ideas I would apprcieate it. I have no idea where to put >> the /AUXSOURCE= flag and also don't know what value it is looking for. > > This would be helpful: > >> Problem reports: http://cygwin.com/problems.html > > Or at least who the 'cron' service is running as. My guess is that when you > installed cron, you chose to run it as yourself or some other unprivileged > (including 'Administrator') user. Windows services cannot switch user > contexts unless they use a special privileged account (SYSTEM on XP or older > systems). That's why you get the message. The solution? Reinstall it and > let it run under a privileged account. Hello, After all of my struggles getting this to work I have finally got it. What I did was chmod all of the files in my cywin install and took ownership with the same domain admin account that cron is using and it worked! Kevin M (A true work in progress!) -- 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/