Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 11 Jul 2001 20:39:19 +0200 From: Corinna Vinschen To: cygwin Subject: Re: error starting cron on nt4 Message-ID: <20010711203919.A29492@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <20010711165423 DOT A29127 AT cygbert DOT vinschen DOT de> <200107111907 DOT TAA05247 AT mdve DOT oss DOT dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107111907.TAA05247@mdve.oss.dk>; from ebm@oss.dk on Wed, Jul 11, 2001 at 07:07:53PM +0000 On Wed, Jul 11, 2001 at 07:07:53PM +0000, Erik Bak-Mikkelsen wrote: > I did an > mkpasswd -l >/etc/passwd > mkpasswd -g >/etc/group Ack! That should be `mkgroup -l >/etc/group'. Otherwise it's possible that the context switch doesn't work. > Please, could You elaborate on using ntsec? The only configuratioon I have > made is CYGWIN=ntsec http://cygwin.com/cygwin-ug-net/ntsec.html > But is that sufficeient? At least, now it seems that cron is executing each minut as I expect but still it gives the Should be sufficient. Personally I prefer "CYGWIN=ntsec tty" but that shouldn't matter. > ... Id = 0x162 : (CRON) error (can't switch user context). > errors in the EventLog. > What could be causing this remembering my simple ntsec setting? Except for the above /etc/group problem ... no idea. You could start cron under strace to find out. Install another service "cron2" which is installed as follows: cygrunsrv -I cron2 -p /bin/strace \ -a '-o C:/cygwin/tmp/cron2.trace C:/cygwin/usr/sbin/cron.exe -D' \ -e 'CYGWIN=ntsec' and then start it cygrunsrv -S cron2 and then stop it 90 seconds later cygrunsrv -E cron2 and then send the file C:/cygwin/tmp/cron2.trace EXCEPTIONALLY to my personal account vinschen AT redhat DOT com. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/