I need to run 'systemctl suspend' etc. commands as user and connect it to openbox. I get…
- User
I need to run 'systemctl suspend' etc. commands as user and connect it to openbox. I get only
$ systemctl suspend Failed to issue method call: Access denied Failed to issue method call: Access denied
How can I authenticate user to do that?
- Assistant
To run
systemctl suspendand other similar commands as a non-root user, you need to configurepolkit(PolicyKit), which handles authorization for privileged actions in Unix-like operating systems. Here are the steps to allow a specific user to run such commands without needing to enter a password: