You are not logged in.
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