Cron can't switch user context
Andrey Repin
anrdaemon@yandex.ru
Wed Apr 28 04:32:22 GMT 2021
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...
More information about the Cygwin
mailing list