{"id":3175,"date":"2011-12-12T19:23:05","date_gmt":"2011-12-12T17:23:05","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=3175#post-"},"modified":"2011-12-12T19:23:05","modified_gmt":"2011-12-12T17:23:05","slug":"polkit-administration-without-password","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2011\/12\/12\/polkit-administration-without-password\/","title":{"rendered":"PolKit administration without password"},"content":{"rendered":"<p>I&#8217;m the sole (super)user of my system which is physically secure from untrusted users. I want to skip entering my password for administration purposes. For sudo I&#8217;ve achieved this with a file saying<\/p>\n<pre>jani ALL=(ALL) NOPASSWD: ALL<\/pre>\n<p>in my \/etc\/sudoers.d\/.<\/p>\n<p>For Policy Kit, according to <a href=\"http:\/\/hal.freedesktop.org\/docs\/polkit\/pklocalauthority.8.html\">pklocalauthority documentation<\/a>, I&#8217;ve placed inside \/etc\/polkit-1\/localauthority\/50-local.d a key file I&#8217;ve named &#8220;90-net.mummila.jani.nopasswd.pkla&#8221;. Here&#8217;s the content of that file:<\/p>\n<pre>[We don't need no stinkin' passwords]\r\nIdentity=unix-user:jani\r\nAction=*\r\nResultAny=no\r\nResultInactive=no\r\nResultActive=yes<\/pre>\n<p>What this translates to is that when I&#8217;m logged in and on an active local session (sitting right here), I&#8217;m not required to enter my password for administration tasks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m the sole (super)user of my system which is physically secure from untrusted users. I want to skip entering my password for administration purposes. For sudo I&#8217;ve achieved this with a file saying jani ALL=(ALL) NOPASSWD: ALL in my \/etc\/sudoers.d\/. For Policy Kit, according to pklocalauthority documentation, I&#8217;ve placed inside \/etc\/polkit-1\/localauthority\/50-local.d a key file I&#8217;ve [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3175","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=3175"}],"version-history":[{"count":4,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3175\/revisions"}],"predecessor-version":[{"id":3179,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3175\/revisions\/3179"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}