You are not logged in.

#1 2018-11-30 09:24:20

UglyBob
Member
Registered: 2015-11-29
Posts: 54

[Solved] Multiple identities when running systemctl

When I run systemctl without sudo, I get a questions which identity to use for authentication. The system used to be a htpc and was installed by user kodi, while my personal user is mattias. I don't want it to ask this question, but use my own user automatically. Where do I change this?

$ systemctl disable openhab2
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====
Authentication is required to manage system service or unit files.
Multiple identities can be used for authentication:
 1.  kodi
 2.  mattias
Choose identity to authenticate as (1-2):

Last edited by UglyBob (2018-11-30 11:44:42)

Offline

#2 2018-11-30 09:49:09

Piri
Member
Registered: 2018-06-02
Posts: 70

Re: [Solved] Multiple identities when running systemctl

If you don't need admin rights on kodi anymore, remove kodi from the wheel group. Then the user kodi shouldn't show up on any polkit prompts anymore.

Offline

#3 2018-11-30 10:06:09

UglyBob
Member
Registered: 2015-11-29
Posts: 54

Re: [Solved] Multiple identities when running systemctl

Ah, that simple! Will try it, thx

Offline

Board footer

Powered by FluxBB