CoreCtrl asking root password

Hi!
Idk what is happening, suddenly CoreCtrl is asking root password everytime I start it.
I try to search it first about it, what I got is about "polkit1" and ".rules"
So i go into "99-garuda.rules" and change some

polkit.addRule(function(action, subject) {
    if ((action.id == "org.corectrl.helper.init" ||
         action.id == "org.corectrl.helperkiller.init") &&
         subject.isInGroup("wheel"))
    {
         return polkit.Result.YES;
    }
});

into

polkit.addRule(function(action, subject) {
    if ((action.id == "org.corectrl.helper.init" ||
         action.id == "org.corectrl.helperkiller.init") &&
         subject.local == true &&
         subject.active == true &&
         subject.isInGroup("my user group"))
    { 
         return polkit.Result.YES;
    }
});

nothing change and it still asking root password everytime I start it and I put it on autostart.

I've had the same problem but with mounting disks in dolphin. Constantly getting asked for my password. It seems this is caused by incorrect permissions on the 99-garuda.rules file.

-rwxr-x--- 1 root root 3025 Apr 5 11:56 99-garuda.rules

The polkit daemon runs with limited permissions as the polkitd user therefore can't read the file and load the rules. The solution is to change the group for the rules directory so that polkit has read access:

sudo chown -R root:polkitd /etc/polkit-1/rules.d

and then relogin.

But it seems this change doesn't persist when updating the system, so you have to run this command every time after updating your system. There probably is a way to permanently fix this, but I haven't found one.

2 Likes

See the chatrr command to make a file immutable:

https://man.archlinux.org/man/chattr.1.en

4 Likes

fixed the permission issue
thanks for reporting :slightly_smiling_face:

5 Likes

Welcome, @CaZzzer - enjoy your time here. :slightly_smiling_face:

1 Like

This is work after I finally have the time to test it. Thanks @CaZzzer :smiley: :beers:
and welcome to the community :smiley:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.