You are not logged in.

#1 2025-05-26 05:50:19

jenetism
Member
Registered: 2024-02-28
Posts: 13

systemctl authenticating as root [SOLVED]

I know this question has probably been posted numerous times, but somehow I couldn't find my answer.
So I have added my user with

useradd -m user

, but after I logged in (using ly dm), every

systemctl start/enable service

becomes

authenticating as: root

, I don't want that. Can someone help it become

authenticating as: user

? Thanks

Last edited by jenetism (2025-05-26 08:18:42)

Offline

#2 2025-05-26 06:21:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: systemctl authenticating as root [SOLVED]

You're either looking for "systemctl --user" (for user session services, https://wiki.archlinux.org/title/Systemd/User ) or don't understand what's happening there.
systemctl requires root permissions to change the user and will in doubt use polkit to gain them.
You can also "sudo systemctl blafoobar", but configuring the system as unprivileged user isn't a thing.

Offline

#3 2025-05-26 07:20:04

jenetism
Member
Registered: 2024-02-28
Posts: 13

Re: systemctl authenticating as root [SOLVED]

using `systemctl --user` will list that service does not exist

Offline

#4 2025-05-26 07:33:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: systemctl authenticating as root [SOLVED]

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

What are you *actually* trying to do?
Again: enabling a system service *will* require root privileges.

Offline

#5 2025-05-26 07:46:12

jenetism
Member
Registered: 2024-02-28
Posts: 13

Re: systemctl authenticating as root [SOLVED]

I'm trying to `systemctl enable iwd` (or any other service)
as non root user
I know it will prompt password, and it's okay, but, the `authenticating as: root`
meaning I will start this service as root, instead of 'authenticating as: user`
This is a new install and my last install will have `authenticating as:user` normally, before prompting as password for root privileges.

Offline

#6 2025-05-26 08:05:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: systemctl authenticating as root [SOLVED]

Add your user to the wheel group

Offline

#7 2025-05-26 08:17:09

jenetism
Member
Registered: 2024-02-28
Posts: 13

Re: systemctl authenticating as root [SOLVED]

It works now
Thank you @seth you are the best tongue

Offline

Board footer

Powered by FluxBB