with couple of options which i mapped it to a keyboard shortcut in i3. Whenever i press the keyboard shortcut menu opens, howsoever i couldn't find a way to provide permission for restart/stop/start services... Can't use sudo in that shell script, that's certain. How can i use sth. like sudo there to provide privilege for that process?
You can make calls to systemctl via sudo allowed without a password. See man sudoers
i suppose that when systemctl doesn't have the rights to do whatever user wanted to do, it opens polkit. I got that idea by doing this: strings /usr/bin/systemctl | grep polkit This really interesting, if I'm on the terminal it asks for my password. However on rofi it doesn't ask for anything.
you probably don't have a polkit gui agent...
If you used sudo like I said it wouldn't have asked for any password.
Обсуждают сегодня