delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/11:05:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 16:54:23 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: error starting cron on nt4
Message-ID: <20010711165423.A29127@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20010711141556 DOT P8578 AT cygbert DOT vinschen DOT de> <200107111608 DOT QAA03517 AT mdve DOT oss DOT dk>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <200107111608.QAA03517@mdve.oss.dk>; from ebm@oss.dk on Wed, Jul 11, 2001 at 04:08:54PM +0000

On Wed, Jul 11, 2001 at 04:08:54PM +0000, Erik Bak-Mikkelsen wrote:
> >   cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=<your settings>"
> > 
> Great, and thanks, this solved the install and run problem of the cron daemon.
> Now the service is installed under the SYSTEM account.
> However, my crontab under another userid 
> */1 * * * * /cygdrive/mydrive/notepad.exe
> gives an error in the EventLog saying 
> The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) 
> could not be found. It contains the following insertion string(s): 
> /USR/SBIN/CRON : Win32 Process Id = 0x162 : Cygwin Process 
> Id = 0x162 : (CRON) error (can't switch user context).

It's very likely that your /etc/passwd isn't setup correctly.
All users must be setup correctly in /etc/passwd. Use mkpasswd
to generate correct /etc/passwd entries. 

Also you should use ntsec since that is recommended (and required
in future releases of Cygwin) to switch user context without password
as cron does.

> Now, I think I have read something about running cron under diiferent users but I can't figure out what it was. Maybe a limitation in NT?

Don't start cron other than under SYSTEM account using uid 18.
Switching user context needs various user rights only given to
SYSTEM by default. If you won't do that you'll have to rebuild
cron using other values.

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/

- Raw text -


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