This is the mail archive of the cygwin@cygwin.com 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]

Re: error starting cron on nt4


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@redhat.com.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.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/


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