{"id":404,"date":"2023-05-21T06:30:50","date_gmt":"2023-05-21T01:30:50","guid":{"rendered":"https:\/\/brainlessideas.com\/?p=404"},"modified":"2023-05-21T06:30:50","modified_gmt":"2023-05-21T01:30:50","slug":"kde-on-ubuntu-how-do-i-prevent-policykit-from-asking-for-a-password","status":"publish","type":"post","link":"https:\/\/brainlessideas.com\/index.php\/2023\/05\/21\/kde-on-ubuntu-how-do-i-prevent-policykit-from-asking-for-a-password\/","title":{"rendered":"KDE on Ubuntu &#8211; How do I prevent PolicyKit from asking for a password?\u00a0"},"content":{"rendered":"<div class=\"votecell post-layout--left\">\n<div class=\"js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200\" data-post-id=\"123260\">\n<div class=\"js-accepted-answer-indicator flex--item fc-green-700 py6 mtn8\" tabindex=\"0\" title=\"Loading when this answer was accepted\u2026\" role=\"note\" data-s-tooltip-placement=\"right\" aria-label=\"Accepted\">\n<div class=\"ta-center\">You can <a href=\"https:\/\/git.launchpad.net\/ubuntu\/+source\/casper\/tree\/scripts\/casper-bottom\/44pk_allow_ubuntu?id=db8f8bfa4f72813d72ef18085c67c4610a933830#n26\" rel=\"nofollow noreferrer\">use the same technique Ubuntu&#8217;s Live CD uses<\/a>\u00a0by tricking PolicyKit and suppressing ALL password prompts by substituting the action with a wildcard.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\">\n<p><strong>DISCLAIMER: The following will suppress ALL password prompts globally for everyone belonging to the admin group, with the exception of the login screen. It is EXTREMELY dangerous and should NEVER be implemented because chances are YOU WILL END UP BREAKING YOUR SYSTEM!!<\/strong><\/p>\n<p>Don&#8217;t say you weren&#8217;t warned!<\/p>\n<p>NOTE: If you are running 12.04 or later, substitute &#8220;admin&#8221; with &#8220;sudo&#8221;!<\/p>\n<p>Replace &#8220;username&#8221; with your actual user name:<\/p>\n<pre><code>usermod -aG admin username\r\n<\/code><\/pre>\n<p>Switch to root:<\/p>\n<pre><code>sudo -i\r\n<\/code><\/pre>\n<p>Create a new policy:<\/p>\n<pre><code>gedit \/var\/lib\/polkit-1\/localauthority\/50-local.d\/disable-passwords.pkla\r\n<\/code><\/pre>\n<p>Add the following:<\/p>\n<pre><code>[Do anything you want]\r\nIdentity=unix-group:admin\r\nAction=*\r\nResultActive=yes\r\n<\/code><\/pre>\n<p>Save and exit. Then go try something that usually requires a password. \ud83d\ude42<\/p>\n<p>NOTE: It doesn&#8217;t matter what you use as your .pkla file name. You can name it anything you want.<\/p>\n<\/div>\n<\/div>\n<p><em style=\"color: #404040;\"><a href=\"https:\/\/askubuntu.com\/questions\/98006\/how-do-i-prevent-policykit-from-asking-for-a-password\">sudo &#8211; How do I prevent PolicyKit from asking for a password? &#8211; Ask Ubuntu<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p> You can use the same technique Ubuntu&#8217;s Live CD uses by tricking PolicyKit and suppressing ALL password prompts by substituting the action with a wildcard. <\/p>\n<p>DISCLAIMER: The following will suppress ALL password prompts globally for everyone belonging to the admin group, with the exception of the login screen. It is EXTREMELY dangerous and should [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,10],"tags":[],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-it","category-linuxses","odd"],"_links":{"self":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":1,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/posts\/404\/revisions\/405"}],"wp:attachment":[{"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brainlessideas.com\/index.php\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}