I'm seeking for kind of old style solution: I need to cause all elevated priviledges platform on Ubuntu machine to request target user/root password instead of asking for calling user password.
I've managed to set target user setting for sudo, still, applications using the Polkit for extended priviledges are requesting the user password by default.
I've seen multiple users of other distros seeking opposite solution, to let Polkit use user password instead of root password, still no clear answer is achieved!
Any assistanse is highly appreciated!
Best Answer
This behavior is controlled by PolicyKit's LocalAuthority configuration. From the
ADMINISTRATOR AUTHENTICATION
section ofman pklocalauthority
:At least in my (18.04) Ubuntu system, the two relevant files are
50-localauthority.conf
and51-ubuntu-admin.conf
:So, in order to revert to the PolicyKit default, which uses
AdminIdentities=unix-user:0
(i.e.root
) instead of the Ubuntu defaultAdminIdentities=unix-group:sudo;unix-group:admin
(i.e. members ofsudo
and/oradmin
groups), it's sufficient to either rename the51-ubuntu-admin.conf
file so that it is loaded earlier or not at all - for exampleor comment out the
AdminIdentities
entry therein. The former option is perhaps cleaner and more maintainable.