crontab message "must be privileged to use -u"

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Thu Mar 19 01:25:20 GMT 2020


On 2020-03-18 15:39, Achim Gratz wrote:
> Andrey Repin writes:
>>>> I'm in an elevated shell, but it seems crontab is doing a dumb POSIX check for
>>>> EUID=0.
>>
>>> Then wrapping it with fakesu should work (no I have not tried that).
>>
>> Cool idea, but I'm not up for recompiling crontab >.>
>> Still, thanks for the reply.
> 
> If you care to look at the package listing you might have noticed that
> there is an actual fakesu binary present that I believe does exactly
> what you were asking.

Installed libfakesu - fakesu just scans source for functions it can fake - it is
undocumented and not obvious how you are meant to run it.
One library function can implement suid/sgid exe permission bits.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.



More information about the Cygwin mailing list