<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2017&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Policykit issues]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2017</link>
		<description><![CDATA[The most recent posts in Policykit issues.]]></description>
		<lastBuildDate>Thu, 21 Jun 2018 19:58:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Policykit issues]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=10296#p10296</link>
			<description><![CDATA[<p><a href="https://superuser.com/questions/354678/what-is-the-correct-way-to-prevent-non-root-users-from-issuing-shutdowns-or-rebo" rel="nofollow">https://superuser.com/questions/354678/ … ns-or-rebo</a></p>]]></description>
			<author><![CDATA[dummy@example.com (ChuangTzu)]]></author>
			<pubDate>Thu, 21 Jun 2018 19:58:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=10296#p10296</guid>
		</item>
		<item>
			<title><![CDATA[Policykit issues]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8587#p8587</link>
			<description><![CDATA[<p>In an effort to learn the policykit framework, I am trying to disallow any desktop user<br />in the group &quot;desktop&quot; from rebooting or shutdown.&#160; In spite of all configuration which<br />should accomplish this, any user in the desktop group is still able to reboot/shutdown.<br />I am running ascii_2.0.0-beta_amd64.&#160; Here are my configs:</p><div class="codebox"><pre class="vscroll"><code>C:\&gt; cat /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf 
[Configuration]
AdminIdentities=unix-group:desktop

C:\&gt; cat /etc/polkit-1/localauthority/50-local.d/70-org.example.pkla 
[Disallowed Lusers]
Identity=unix-group:desktop
Action=org.freedesktop.consolekit.*
ResultAny=no
ResultInactive=no
ResultActive=no

C:\&gt; cat /etc/polkit-1/rules.d/70-shutdown.rules 
polkit.addRule(
        function(action, subject) {
            if (action.id == &quot;org.freedesktop.consolekit.system.stop&quot; &amp;&amp; subject.isInGroup(&quot;desktop&quot;) ) {
                   return polkit.Result.NO;
           }
        }
});

C:\&gt; cat /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy 
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE policyconfig PUBLIC
 &quot;-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN&quot;
 &quot;http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd&quot;&gt;

&lt;!--
Policy definitions for ConsoleKit
--&gt;

&lt;policyconfig&gt;

  &lt;action id=&quot;org.freedesktop.consolekit.system.stop&quot;&gt;
    &lt;description&gt;Stop the system&lt;/description&gt;                                                                                                                         
    &lt;message&gt;System policy prevents stopping the system&lt;/message&gt;                                                                                                      
    &lt;defaults&gt;                                                                                                                                                         
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;                                                                                                                              
      &lt;allow_active&gt;no&lt;/allow_active&gt;                                                                                                                                  
    &lt;/defaults&gt;                                                                                                                                                        
  &lt;/action&gt;                                                                                                                                                            
                                                                                                                                                                       
  &lt;action id=&quot;org.freedesktop.consolekit.system.stop-multiple-users&quot;&gt;                                                                                                  
    &lt;description&gt;Stop the system when multiple users are logged in&lt;/description&gt;                                                                                       
    &lt;message&gt;System policy prevents stopping the system when other users are logged in&lt;/message&gt;                                                                       
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;no&lt;/allow_active&gt;
    &lt;/default&gt;
  &lt;/action&gt;

  &lt;action id=&quot;org.freedesktop.consolekit.system.restart&quot;&gt;
    &lt;description&gt;Restart the system&lt;/description&gt;
    &lt;message&gt;System policy prevents restarting the system&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;no&lt;/allow_active&gt;
    &lt;/defaults&gt;
  &lt;/action&gt;

  &lt;action id=&quot;org.freedesktop.consolekit.system.restart-multiple-users&quot;&gt;
    &lt;description&gt;Restart the system when multiple users are logged in&lt;/description&gt;
    &lt;message&gt;System policy prevents restarting the system when other users are logged in&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;no&lt;/allow_active&gt;
    &lt;/defaults&gt;
  &lt;/action&gt;

&lt;/policyconfig&gt;</code></pre></div><p>Maybe someone can tell me what I&#039;m missing here ?<br />Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (aardvark)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:49:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8587#p8587</guid>
		</item>
	</channel>
</rss>
