From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by sourceware.org (Postfix) with ESMTPS id 056F43939C2A for ; Wed, 28 Apr 2021 04:35:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 056F43939C2A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from iva8-34fb5df223d4.qloud-c.yandex.net (iva8-34fb5df223d4.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:b999:0:640:34fb:5df2]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 846BE5F811DE for ; Wed, 28 Apr 2021 07:35:01 +0300 (MSK) Received: from iva6-2d18925256a6.qloud-c.yandex.net (iva6-2d18925256a6.qloud-c.yandex.net [2a02:6b8:c0c:7594:0:640:2d18:9252]) by iva8-34fb5df223d4.qloud-c.yandex.net (mxback/Yandex) with ESMTP id VJV9d31x3f-Z1JG2eJ2; Wed, 28 Apr 2021 07:35:01 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1619584501; bh=sN5sxKgTPzGeTGPvrSWf/UPWlLA6HOpgvRlAFC/hrc8=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=uI1byfnx/oL7X9rvLkKj1L/M8PQTwg07fdSLgGOAWCC7rLMgly7LJJlVrRTGUGSCB 9xeoMxgCbjoJHUzxDzIKqcdhJNbiBiFLXlAGydm2O0wEdmp7zlowOUasrFfWv+mqRo HCdwcCnF0F1604F/ghryDf31pdzidaNiCH+kub8k= Authentication-Results: iva8-34fb5df223d4.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by iva6-2d18925256a6.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id KwbDqsRBr0-Z0LmLHK6; Wed, 28 Apr 2021 07:35:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 28 Apr 2021 04:32:22 -0000 Date: Wed, 28 Apr 2021 07:32:22 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <190195709.20210428073222@yandex.ru> To: Brian Inglis , cygwin@cygwin.com Subject: Re: Cron can't switch user context In-Reply-To: <19ee56d3-2cde-c385-c7e5-d7aa8b998e8b@SystematicSw.ab.ca> References: <07454449-b11f-febb-bda5-98c6822608d1@t-online.de> <19ee56d3-2cde-c385-c7e5-d7aa8b998e8b@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2021 04:35:05 -0000 Greetings, Brian Inglis! >> We are aware that there are many tutorials and Q&A on the net which deal with >> exactly this subject. However, none of the proposed solutions worked for us. The one Q&A should have get you started: since Cygwin 3.1 (IIRC, may be earlier), the core was changed to use LocalSystem account and some new(-ish) facilities only available in Windows 7 and up to rebuild auth user token without using CygLSA or what not. This affecting SSHD, Cron and any other Cygwin daemon dealing with user authorization. >> We would be very glad if you could give us some hints how to solve the problem. >> P.S. Please note that /var/log/cron.log and /home/Administrator/cron.log are >> both empty, so we didn't attach them. > I changed mine to run under LocalSystem account when system upgraded, had cyglsa > installed previously (not used now I believe), and set passwd -R for account. > Don't forget to either set PATH to scripts in crontab or set for system before > cygrunsrv starts cron as a Windows service. -- With best regards, Andrey Repin Wednesday, April 28, 2021 7:28:14 Sorry for my terrible english...