I am using Debian 7, and my desktop is xfce. I want to achieve managing any command on Linux. For example, executing
/usr/bin/xfce4-taskmanager command would not require
sudo privileges so any user can execute it. But I want to give privilege to user for
taskmanager command. How can I achieve this?
I researched on Internet and found polkit (PolicyKit). Polkit has predefined actions and you can write rules for this actions. So I prepared custom action for
taskmanager command. When I had executed
pkexec /usr/bin/xfce4-taskmanager on console, I saw the message which I prepared before, but it is not solving my problem. I don't want to use
I saw an action class prepared for
gparted command. When I click gparted menu item from desktop with normal user, it is not opening because normal user does not have privileges. I changed access privilege and clicked again, and
gparted opened successfully.
How can I write action like
gparted? There is no documentation enough. Or is there another way to achieve this? Can I give
sudo privilege to a command which is not have