From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85605 invoked by alias); 13 Jan 2016 15:01:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 85593 invoked by uid 89); 13 Jan 2016 15:01:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=PID, 608, HContent-type:iso-8859-1, cronbug X-HELO: vms173021pub.verizon.net Received: from vms173021pub.verizon.net (HELO vms173021pub.verizon.net) (206.46.173.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 13 Jan 2016 15:01:11 +0000 Received: from PHumbletLap01 ([50.234.122.146]) by vms173021.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O0W0028NCC3CL20@vms173021.mailsrvcs.net> for cygwin@cygwin.com; Wed, 13 Jan 2016 09:00:44 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WcjxEBVX c=1 sm=1 tr=0 a=KrxOixJQSGuLeZTBZa60Dw==:117 a=o83nqyVRAAAA:8 a=oR5dmqMzAAAA:8 a=8nJEP1OIZ-IA:10 a=7aQ_Q-yQQ-AA:10 a=6PLk1eYi-Z4qxNLEjmgA:9 a=wPNLvfGTeEIA:10 Reply-to: From: "Pierre A Humblet" To: =?iso-8859-1?Q?'Stefan_G=F6tz'?= , References: <5695E6C8.20505@mykolab.com> In-reply-to: <5695E6C8.20505@mykolab.com> Subject: RE: cron bug Date: Wed, 13 Jan 2016 15:17:00 -0000 Message-id: <005001d14e13$2c67a470$8536ed50$@ieee.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-SW-Source: 2016-01/txt/msg00164.txt.bz2 > -----Original Message----- > From: Stefan G=F6tz > Sent: Wednesday, January 13, 2016 12:55 AM >=20 >=20 > Hello, >=20 > I have set up cron as below on a fresh Windows 10 with a fresh, > minimal 64-bit Cygwin installation. Cronjobs are not executed and cronevents says /usr/sbin/cron: > PID 608: (CRON) error (can't switch user context). The output of cronbug is attached. >=20 > When I run the service not under my own user but as an administrator, the > result and error is the same. >=20 >=20 > Thanks! Any advice is appreciated. >=20 >=20 > $ cron-config Thanks for sending the cronbug.txt, Stefan. It shows that although you asked to run as yourself the daemon is actually running under the SYSTEM account. That explains the error message, but I wonder why cron-config misbehaves. That hasn't changed in years. Are you logged in with your "Windows id" (instead of as your local user id)? If so there has been a similar case that has never been fully explained. Could you do the following: Edit /bin/cron-config and uncomment the second line (set -x) Run the modified cron-config, reproducing exactly what you do usually (remove the service, ask to run as yourself). The details of what the script does will be echoed. Then paste the whole output in an e-mail, you can send it to me privately. Pierre -- 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