[arch-general] Polishing systemd

Martín Cigorraga msx at archlinux.us
Wed Oct 17 14:40:58 EDT 2012


On Tue, Oct 16, 2012 at 6:37 PM, Leonid Isaev <lisaev at umail.iu.edu> wrote:

> On Tue, 16 Oct 2012 23:08:33 +0200
> Thomas Bächler <thomas at archlinux.org> wrote:
>
> > Am 16.10.2012 20:15, schrieb Martín Cigorraga:
> > > Interesting, but I don't know. This may be a polkit setting. If you
> find
> > > out, I'd be interested.
> > >
> > > I was sugested in the #systemd channel that this may be associated with
> > > dbus:
> > > 06:31:17 Mithrandir | sounds like the dbus config isn't restrictive
> enough,
> > > you should get something like:
> > > 06:31:20 Mithrandir | > systemctl reboot
> > > 06:31:22 Mithrandir | Failed to issue method call: Access denied
> > >
> > > I'll keep you informed while I continue investigating this issue until
> I
> > > have
> > > enough info to file a bug.
> >
> > That's not it. It's intended that you can reboot/halt as user, if nobody
> > else is logged in.
> >
> >
>
> Actually, I am seeing this too.
>
> More precisely, from console "systemctl reboot" works as a normal user.
> However, when X (and xfce4-session) is started via "startx -- vt1" I can no
> longer do that (with the same error message as Martin). In both cases
> "loginctl" shows an assigned seat0, and inside xfce "ck-list-session"
> shows an
> active session on /dev/tty1, so I can reboot/poweroff via
> ck/polkit/sysvcompat
> layer.
>
> I can't try gnome to check whether it is an issue with xfce4-session not
> being
> systemd-aware, because somehow gnome-shell segfaults on startup for me :(
>
> --
> Leonid Isaev
> GnuPG key: 0x164B5A6D
> Fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
>

"That's not it. It's intended that you can reboot/halt as user, if nobody
else is logged in."

Ahh, ok, that explains a lot.

I can reboot/shutdown with my user account from both CLI and inside X.
However
when I switch to another user if I try to reboot/shutdown from CLI I'm
asked for the
first logged user password (instead the root password!) while when inside X
I just
have the "Access denied" message - with not chance to enter any password to
authorize the command.


More information about the arch-general mailing list