You are not logged in.

#1 2018-06-06 21:32:22

strupo
Member
Registered: 2018-01-26
Posts: 6

[SOLVED] systemctl: Authenticate as your own user when starting servic

I used to be able to run things like

systemctl start httpd.service

for example, and I would get a prompt to enter my own (non-root) password for authentication,
but now, I don't know why, but it only offers root:

~$ systemctl start httpd.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start 'httpd.service'.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ====

How can I change it back to allow normal users to authenticate?

Note that my user does have sudo privileges, and is part of the wheel group.

Edit: I think this issue might have something to do with Polkit, but I'm not sure, because I don't recall editing any configuration files.

Last edited by strupo (2018-06-07 00:42:30)

Offline

#2 2018-06-07 00:41:34

strupo
Member
Registered: 2018-01-26
Posts: 6

Re: [SOLVED] systemctl: Authenticate as your own user when starting servic

I finally fixed it.

The problem was that I removed my user from all other groups by accident when I tried to add it to a new one, basically, I did

usermod -G group user

instead of

usermod -aG group user

.

Adding my user back to the other groups (namely, wheel) fixed this issue. I'm marking this as solved.

Offline

Board footer

Powered by FluxBB