You are not logged in.

#1 2013-05-10 06:08:01

wolfcore
Member
From: California
Registered: 2012-03-06
Posts: 137

How to systemctl suspend without sudo

I'd like to bind `systemctl suspend` to a key combo, but how can I run the command without sudo (and therefore without having to enter my password)?

Offline

#2 2013-05-10 06:11:19

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: How to systemctl suspend without sudo

It doesn't need sudo for me, it should work for you, too.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-05-10 06:20:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: How to systemctl suspend without sudo

logind should handle this normal user capability.  You can use loginctl to make sure your session is active.

If all else fails, you can always learn a bit more about sudo...

Offline

#4 2013-05-10 06:39:41

wolfcore
Member
From: California
Registered: 2012-03-06
Posts: 137

Re: How to systemctl suspend without sudo

My session is not active, now I will try to get logind working...

Last edited by wolfcore (2013-05-10 06:43:39)

Offline

Board footer

Powered by FluxBB