Re: Executing 'systemctl poweroff' from script run by cron.
Hi.
On Tue, Nov 24, 2020 at 10:05:26AM +0100, tomas@tuxteam.de wrote:
> On Tue, Nov 24, 2020 at 09:32:49AM +0300, Reco wrote:
> > On Mon, Nov 23, 2020 at 10:55:50PM -0000, Juan R. de Silva wrote:
> > > 1. Why, when the script is run by the user cron job, the execution
> > > requires authentication, while run from the same user terminal, it does
> > > not.
> >
> > What "systemctl poweroff" actually does [...]
>
> Thanks for the gory details. You spoilt my breakfast ;-)
I really feel sorry for that.
But in this regard systemd is akin to many other things in life - it may
look pretty from the outside, but requires a strong stomach to peek
inside :)
> > It's a FreeDesktop standard, believe it or not.
> > A user should be allowed to reboot or poweroff the computer which they
> > have direct console access.
...
> Thanks (this time genuine thanks!) to people like you: you help
> me to stay informed without having all the pain myself :-)
You're welcome!
Reco
Reply to: