Re: Could someone help me with writing polkit rule?

2013-10-25 Thread Tim Lauridsen
Yes, I think so The policy is to config pkexec to run something as root The rule is to make the group get permission without having to enter a root/admin password Tim On Fri, Oct 25, 2013 at 2:08 PM, Peter Lemenkov wrote: > 2013/10/25 tim.laurid...@gmail.com : > > It is some time ago it was fi

Re: Could someone help me with writing polkit rule?

2013-10-25 Thread Ahmad Samir
On 25 October 2013 11:22, Peter Lemenkov wrote: > Hello All! > > I 'm trying to write a polkit rule which allows every member of a > particular group ("ejabberd") to run a specific script > ("/sbin/ejabberdctl" or "/usr/sbin/ejabberdctl"). Other users should > not be even able to run it. This soun

Re: Could someone help me with writing polkit rule?

2013-10-25 Thread Peter Lemenkov
2013/10/25 tim.laurid...@gmail.com : > It is some time ago it was fighting with polkit, but as far is I remember > you have to > make a .policy file to get pkexec to work right > > Like this one I use in yumex. > https://github.com/timlau/yumex/blob/master/misc/dk.yumex.backend.policy.in > > It sh

Re: Could someone help me with writing polkit rule?

2013-10-25 Thread tim.laurid...@gmail.com
It is some time ago it was fighting with polkit, but as far is I remember you have to make a .policy file to get pkexec to work right Like this one I use in yumex. https://github.com/timlau/yumex/blob/master/misc/dk.yumex.backend.policy.in It should be installed in /usr/share/polkit-1/actions/

Could someone help me with writing polkit rule?

2013-10-25 Thread Peter Lemenkov
Hello All! I 'm trying to write a polkit rule which allows every member of a particular group ("ejabberd") to run a specific script ("/sbin/ejabberdctl" or "/usr/sbin/ejabberdctl"). Other users should not be even able to run it. This sounds simple, so I quickly wrote this: http://peter.fedorapeop