Re: polickit rules - what wrong

2016-10-20 Thread Ansgar Burchardt
Brian writes: > On Thu 20 Oct 2016 at 20:38:35 +0200, Ansgar Burchardt wrote: >> Kamil Jońca writes: >> > I try to make >> > /etc/polkit-1/localauthority/50-local.d/49-nopasswd_limited.conf >> > which contains: >> > polkit.addRule(function(action, subject) { >> [ Javascript ] >> > }); >> > but no e

Re: polickit rules - what wrong

2016-10-20 Thread Brian
On Thu 20 Oct 2016 at 20:38:35 +0200, Ansgar Burchardt wrote: > Kamil Jońca writes: > > I try to make > > /etc/polkit-1/localauthority/50-local.d/49-nopasswd_limited.conf > > which contains: > > polkit.addRule(function(action, subject) { > [ Javascript ] > > }); > > but no effect. > > What do I wr

Re: polickit rules - what wrong

2016-10-20 Thread Ansgar Burchardt
Hi, Kamil Jońca writes: > I try to make > /etc/polkit-1/localauthority/50-local.d/49-nopasswd_limited.conf > which contains: > polkit.addRule(function(action, subject) { [ Javascript ] > }); > but no effect. > What do I wrong? Which version of policykit-1 do you have installed? In Debian, only t

Re: polickit rules - what wrong

2016-10-20 Thread Brian
On Thu 20 Oct 2016 at 19:05:27 +0200, Kamil Jońca wrote: > > I try to allow ordinary user to start/stop system service. > > I try to make > /etc/polkit-1/localauthority/50-local.d/49-nopasswd_limited.conf > which contains: > --8<---cut here---start->8--- > pol

polickit rules - what wrong

2016-10-20 Thread Kamil Jońca
I try to allow ordinary user to start/stop system service. I try to make /etc/polkit-1/localauthority/50-local.d/49-nopasswd_limited.conf which contains: --8<---cut here---start->8--- polkit.addRule(function(action, subject) { if (action.id == "org.freedeskt