X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 AT yandex DOT ru 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 Date: Wed, 28 Apr 2021 07:32:22 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <190195709.20210428073222@yandex.ru> To: Brian Inglis , cygwin AT cygwin DOT 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 AT t-online DOT de> <19ee56d3-2cde-c385-c7e5-d7aa8b998e8b AT SystematicSw DOT ab DOT ca> MIME-Version: 1.0 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 AT cygwin DOT 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple