You are not logged in.
Pages: 1
with the release of polkit 127, run0 should now just work as 'sudo', by asking your password to gain root access. And avoid doing that during the 5 next minutes (the default).
However, this does not work for me. What is troubling, is that it seems to work, for almost everyone.
I even tried to add rule to explicitly keep the auth admin
# cat /etc/polkit-1/rules.d/10-run0-auth-keep.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units") {
if (subject.isInGroup("wheel")) {
return polkit.Result.AUTH_ADMIN_KEEP;
}
}
});That does not work better.
I tried in a fresh nspawn container. still the same. in kvm/libvirt vm, still the same.
This is of-topic here, but I got one success on archlinux arm on a aarch64 rpi3b. but another one fails, I don't see why.
I have never changed polkit configuration, except the rule above.
Edit
It did work in a kvm/libvirt archlinux VM but only inside a tmux run in the console (I don't have a graphical env in those VMs) ??
Last edited by solstice (2025-12-30 18:27:24)
Offline
Are you https://github.com/polkit-org/polkit/issues/613 or rather not the only one with this experience?
Sanity check:
id
loginctl session-statusFwwi,
run0 should now just work as 'sudo'
No.
https://bbs.archlinux.org/viewtopic.php … 4#p2189084
https://bbs.archlinux.org/viewtopic.php … 4#p2178764
https://bbs.archlinux.org/viewtopic.php … 3#p2181413 (this incidentally also seems to be your problem, but on much older polkit)
Offline
OK.
For the context that I have not mentionnned, I am just using gnome and ptyxis, on my desktop. but console/tty in nspawn and VMs
But thanks, I will not try to use that 'run0', after all.
Also somebody please has to explain to me how "thus isolating the authentication prompt from the terminal (if possible)" is "good" by any definition.
I bought that marketing BS but I was not pleased when I first saw that polkit dialog the first time ...
I am giving up on that.
Offline
Pages: 1