You are not logged in.

#1 2020-07-24 12:37:26

pianogamer5
Member
Registered: 2013-06-03
Posts: 10

PolicyKit and systemd-homed

I've recently set up an Arch system, and this go-round I've decided I really wanna test out some new technologies, so I've got GNOME on Wayland with everything possible Flatpak'd, and my user account set up with systemd-homed. Everything has been going fine with that so far, except for one thing: PolicyKit.

When I created my user, I ensured it was a member of the wheel group with the -G flag, and I enabled that rule for sudo. sudo works fine, and lets me execute privileged actions in the terminal. However, whenever I try to do something that authenticates via PolicyKit (unlocking something in gnome-control-center, pkexec, etc.), it asks for the root password instead of my user's password. I checked PolicyKit's rules (/usr/share/polkit-1/rules.d/50-default.rules) and it appears that adding a user to wheel is all I should have to do, which aligns with my experience in the past.

Sure, I could keep a root account enabled just for pkexec/PolicyKit stuff, or I could just not do things in the GUI, but those sound like hacks to me, and I'd rather fix this solution rather than working around it, at least as a learning experience if nothing else.

So, has something changed with PolicyKit? Have I missed a step to get that working? Or is systemd-homed still not quite ready for primetime yet, and should I go back to using a traditional user account setup?

Thanks in advance for any help!

Offline

#2 2020-07-24 12:59:58

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: PolicyKit and systemd-homed

Doesn't it ask for an administrator password? Have you tried entering your user password?

Last edited by progandy (2020-07-24 13:02:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2020-07-24 13:08:56

pianogamer5
Member
Registered: 2013-06-03
Posts: 10

Re: PolicyKit and systemd-homed

Yup, already tried that. It says it's incorrect, even though after revealing the password I've confirmed it is correct. However, if I have a root account enabled with a password set, that password works just fine. I try not to keep a root account around (at least with a password) for safety though

Last edited by pianogamer5 (2020-07-24 13:09:23)

Offline

Board footer

Powered by FluxBB