PKLA-ADMIN-IDENTIT(8)
β¨ PKLA-ADMIN-IDENTITIES β¨
okay bestie, welcome to pkla-admin-identities(8) β the manual page for the little helper that spills the tea on which users your polkit(8) setup considers administrators π
πΈ NAME πΈ
pkla-admin-identities β list the polkit administrators that are configured through pklocalauthority π
π¦ SYNOPSIS π¦
pkla-admin-identities [--help]
pkla-admin-identities [--config-path config-path]
π DESCRIPTION π
So, pkla-admin-identities reads the config files described below and figures out which users polkit(8) counts as administrators β and it does this using a non-JavaScript config file format, which is also described below. no cap π«Ά
Note: the whole "who counts as an administrator" question is actually driven by JavaScript rules, as laid out inpolkit(8).pkla-admin-identitiesgets called by a JavaScript rule file named49-polkit-pkla-compat.rules; other JavaScript rules with a higher priority may also exist, so thepkla-admin-identitiesconfiguration might not actually be the final say in whatpolkit(8)decides. it's giving "just one voice in the group chat" π
The ordering of the JavaScript rule files and the ordering of the pkla-admin-identities configuration files are not integrated β they use totally different rules. The pkla-admin-identities configuration evaluation happens at a single point within the JavaScript rule evaluation order. periodt.
pkla-admin-identities is an internal helper program of pkla-polkit-compat. You really shouldn't need to run it directly, unless you're doing some debugging detective work π
Config is read from files with a .conf extension in the /etc/polkit-1/localauthority.conf.d directory. Every file gets read in lexicographical order (using the C locale), which means later files can override earlier ones. The file 50-localauthority.conf holds the settings provided by the OS vendor. Users and 3rd party packages can drop in configuration files with a priority higher than 60 to change the defaults.
The config file format is simple, bestie. Each configuration file is a key file (also commonly known as an ini file) with a single group called [Configuration]. Only a single key, AdminIdentities, is read. The value of this key is a semi-colon separated list of identities that can be used when administrator authentication is required. Here's the identity tea:
- users are specified by prefixing the user name with
unix-user: - groups of users are specified by prefixing with
unix-group: - netgroups of users are specified with
unix-netgroup:
See the section called βEXAMPLEβ for an example of a configuration file π
pkla-admin-identities outputs the resulting configuration of administrator identities, one identity per line, using the same format (including e.g. the unix-user: prefix). And if no administrator identities are configured in the above-described configuration files, the output will be empty. nothing. zero. void. π
π OPTIONS π
-h,--helpβ write a summary of the available options to standard output and exit successfully. iconic behavior fr fr β¨-c,--config-path=config-pathβ search for configuration files in config-path instead of the default/etc/polkit-1/localauthority.conf.d. go wherever you want queen π¦
π EXIT STATUS π
pkla-admin-identities exits with 0 on success (even if there are no administrator identities β yes, empty is still a success, we love a supportive program π), and a non-zero status on error.
π FILES π
/etc/polkit-1/localauthority.conf.dβ default directory containing configuration files. the home base π
π§ EXAMPLE π§
The following .conf file
[Configuration]
AdminIdentities=unix-group:staff
specifies that any user in the staff UNIX group can be used for authentication when administrator authentication is needed. This file would typically be installed in the /etc/polkit-1/localauthority.conf.d directory and given the name 60-desktop-policy.conf to ensure that it is evaluated after the 50-localauthority.conf file shipped with pkla-polkit-compat. order matters, bestie, it's giving line drama π
If the local administrator wants to override this (suppose 60-desktop-policy.conf was shipped as part of the OS) he can simply create a file 99-my-admin-configuration.conf with the following content
[Configuration]
AdminIdentities=unix-user:lisa;unix-user:marge
to specify that only the users lisa and marge can authenticate when administrator authentication is needed. just the two of them, no plus-ones π
π AUTHOR π
Written by David Zeuthen <davidz@redhat.com> with a lot of help from many others. Adapted by Miloslav TrmaΔ <mitr@redhat.com>. legends, honestly π
π SEE ALSO π
and that's the whole page, bestie!! π«Ά this was polkit-pkla-compat, from May 2013 β yeah it's an elder but it still ate π
β¨ bye mwah π
π¦ where this page comes from
- centos-stream 10: polkit-pkla-compat 0.1-30.el10 Β· LGPL-2.0-or-later
- centos-stream 9: polkit-pkla-compat 0.1-21.el9 Β· LGPLv2+
- debian bookworm: polkitd-pkla 122-3 Β· MIT
- fedora 43: polkit-pkla-compat 0.1-31.fc43 Β· LGPL-2.0-or-later
- fedora 44: polkit-pkla-compat 0.1-32.fc44 Β· LGPL-2.0-or-later
- ubuntu noble: polkitd-pkla 124-2ubuntu1 Β· MIT
- ubuntu noble: polkitd-pkla 124-2ubuntu1.24.04.4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms