You are not logged in.

#1 2015-04-07 00:33:21

dejy
Member
Registered: 2014-03-18
Posts: 67

Suspend from a cronjob : Interactive authentication required.

I have a script which will suspend if certain conditions are met but I get the following error for running systemctl suspend

 
Failed to start suspend.target: Interactive authentication required.

I'm guessing this is because suspend needs to be called either by the local user interactively or as root. What's the best way to do this from a cronjob?

Offline

Board footer

Powered by FluxBB