公司的工作機,無法連接外網,普通用戶帳號經常會彈出org.freedesktop.packagekit.system-network-proxy-configure驗證root密碼的對話框.
對策如下:
在路徑"/etc/polkit-1/localauthority/30-site.d/"下面創建文件"20-no-show-proxy-dialog.pkla"並輸入以下內容
<pre class="EnlighterJSRAW" data-enlighter-language="shell">[No Show Proxy Dialog]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-network-proxy-configure
ResultAny=no
ResultInactive=no
ResultActive=no</pre>
保存,完成.
Linux取消代理驗證框