[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Polkit: prompt for root password



Hello everybody!
I would like Polkit to prompt for _root_ password, not _user_ password. On archwiki I found the following advice: create /etc/polkit-1/rules.d/49-nopasswd_global.rules

and put the following into it:

/etc/polkit-1/rules.d/49-rootpw_global.rules

/* Always authenticate Admins by prompting for the root
 * password, similar to the rootpw option in sudo
 */
polkit.addAdminRule(function(action, subject) {
    return ["unix-user:root"];
});


However, it doesn't work on my Debian Stable system even after I reboot the system. Polkit still prompts for user password. What should I do?
--
Yours sincerely, Jayson Willson


Reply to: