delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4BC8DF49.8060501@laposte.net> |
Date: | Sat, 17 Apr 2010 00:06:01 +0200 |
From: | Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cron error can't switch user context |
References: | <20100416184243 DOT GX5284 AT proxix DOT com> |
In-Reply-To: | <20100416184243.GX5284@proxix.com> |
X-me-spamlevel: | not-spam |
X-me-spamrating: | 38.000000 |
X-me-spamcause: | OK, (-50)(0000)gggruggvucftvghtrhhoucdtuddrvdeluddrvdekucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecutghorhguihgrlhgvmhgvnhhtucdlqdehtddm |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Le 16/04/2010 20:42, Tom Schutter a =E9crit : > > I have number of machines running Windows2003 and Cygwin 1.7.5. On most = cron works. But on one (lemon) it does not. It appears that on lemon cron= cannot switch the user context. > > Cronevents on lemon shows: > > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD (/u= sr/bin/python /cygdrive/f/production-sync/production-sync.py) > 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't= switch user context) > > /var/log/cron.log is empty on all machines. let's configure syslogd from inetutils to have some logs : syslogd-config --yes you may need to configure sshd before to have the right permissions on /var/empty, etc. (ssh-host-config --yes --user "${CYGSERVER_USER}"=20 --pwd "${CYGSERVER_PASS}" where CYGSERVER_USER=3Dcyg_server and=20 CYGSERVER_PASS=3Dwhatever you want) PS : well, I prefer the legacy one than the ng one... PS2: IMHO, linux^Wcygwin cron(^W^Wlinux) sucks bcoz it doesn't report on=20 tasks return codes as a true unix does... (i.e.: < root 1331 c Tue Feb=20 2 17:32:36 MET 2010 rc=3D1) > The cron daemon is running as SYSTEM on all machines. 2K3 may need to be running under cyg_server ? to configure cron, I use : cron-config << EOF yes no no no ${CYGSERVER_PASS} ${CYGSERVER_PASS} no EOF PS : doesn't support csih yet :-( > cyglsa is running on all machines. did you reboot after configuring cyglsa ? > cygserver is not running on any machine. 2K3 may need cygserver as well as passwd -D? > I have rerun cron-config, rebooted, etc. well, ok, you surelly have rebooted :-) > I have searched the net, but most solutions seem to involve Cygwin 1.5 an= d no cyglsa. > > Does anyone have any suggestions? done. Cordialement, Cyrille Lefevre --=20 mailto:Cyrille DOT Lefevre-lists AT laposte DOT net -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |