POLKIT-DEFAULT-PRI(5)
πΈ NAME πΈ
okay bestie, this is the manual page for polkit-default-privs, aka POLKIT-DEFAULT-PRI(5) β and it's giving configuration of polkit security profiles β¨ Honestly, iconic.
π DESCRIPTION π
The files in /usr/etc/polkit-default-privs/profiles define different security profiles that influence the authorization required for various polkit actions used across applications. These files are line based and whitespace delimited. No cap.
Lines starting with # are comments. Comments and empty lines will be ignored, periodt. All other lines consist of two whitespace delimited columns: ACTION and AUTHORIZATION. The ACTION column specifies the polkit action name to configure the default polkit authorization settings for.
The AUTHORIZATION column consists of colon separated fields of the form ANY-USER:INACTIVE-CONSOLE:ACTIVE-CONSOLE. Each of the fields can have one of the values auth_admin, auth_admin_keep, auth_self, auth_self_keep, no and yes. For the meaning of these values see polkit(8).
The field ACTIVE-CONSOLE determines the authorization required for active users on a local console. The field INACTIVE-CONSOLE determines the authorization required for inactive users on a local console (e.g. a locked graphical session). The field ANY-USER determines the authorization required for all others users (e.g. remotely logged in via SSH).
If all three fields carry the same value then the column can be shortened to a single field without a separating colon. This setting will then apply to all three field types.
Heads up bestie: changes in these files donβt take effect immediately. The settings need to be converted into polkit java script code. This can be achieved by calling set_polkit_default_privs(8).
π PROFILE TYPES π
There exist three profile types for setting polkit default privileges. The selection of the profile is performed via the setting POLKIT_DEFAULT_PRIVS in /etc/sysconfig/security. The following profile types exist:
restrictiveβ conservative settings that require the root user password for a lot of actions and disable certain actions completely for remote users. This should only be used on systems where security requirements are high and for experienced users. Usability can suffer a bit, especially on desktop systems, so custom tuning of polkit rules might become necessary.standardβ balanced settings that restrict sensitive actions to require root authentication but allow less dangerous operations for regular logged in users. This should be used on server systems or multi-user systems.easyβ settings that are focused on ease of use. This sacrifices security to some degree to allow a more seamless user experience without interruptions in the workflow due to password prompts. This should only be used for single-user desktop systems.localβ this is a custom profile that can be used on top of the predefined profiles. Configuration items from this profile always take precedence and thus override the predefined profiles. Therefore this profile can be customized to loosen or tighten certain polkit actions.
Also yes, the page says βthreeβ and then lists four β local is the custom overlay situation, so it's kind of the bonus level π
π¦ EXAMPLES π¦
org.spice-space.lowlevelusbaccess auth_admin:auth_self:yes
This line configures the org.spice-space.lowlevelusbaccess polkit action to require admin authentication for remote users, the own account password for inactive users and no authentication for active users.
net.connman.modify auth_admin
This line configures the net.connman.modify polkit action to require admin authentication for all three user context types: remote users, inactive users and active users.
π FILES π
/usr/etc/polkit-default-privs/local.templateβ is a template for/etc/polkit-default-privs.local/usr/etc/polkit-default-privs/profiles/restrictive/usr/etc/polkit-default-privs/profiles/standard/usr/etc/polkit-default-privs/profiles/easy
π SEE ALSO π
π AUTHORS π
- Written by Ludwig Nussel
<ludwig.nussel@suse.de> - Man page written by Matthias Gerstner
<matthias.gerstner@suse.de>
π«Ά REPORTING BUGS π«Ά
Report bugs to https://bugzilla.suse.com/
mwah π β this page is dated 07/20/2021 and tagged POLKIT-DEFAULT-PRI(5), signing off bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: polkit-default-privs 1550+20260709.b1b58aa-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms