Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #161352

Re: Can't startx as normal user

From Ansgar Burchardt <"Ansgar Burchardt"@43-1.org>
Newsgroups linux.debian.user
Subject Re: Can't startx as normal user
Date 2015-11-30 10:20 +0100
Message-ID <qAsMO-1Go-19@gated-at.bofh.it> (permalink)
References <qAozv-7is-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


"Draco Metallium(Rodrigo S. Cañibano)" <draco.kun@gmail.com> writes:
> No only root can run startx. If a user tries the following error appears:
>
> "(EE) AddScreen/ScreenInit failed for driver 0"

The first error in the log you attached is:

> [  4203.010] (EE) systemd-logind: failed to get session: Rejected send message, 1 matched rules; type="method_call", sender=":1.34" (uid=1000 pid=18022 comm="/usr/lib/xorg/Xorg -nolisten tcp :1 vt2 -keeptty -") interface="org.freedesktop.login1.Manager" member="GetSessionByPID" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=5989 comm="/lib/systemd/systemd-logind ")

which looks like some DBus policy forbids Xorg to talk to logind. Xorg
does so in order to get access to devices w/o being setuid root since
recently.

I remember users having problems with DBus policies when old version of
systemd-shim were installed (it has been fixed some time ago),
cf. https://bugs.debian.org/746242

Please make sure that either systemd-shim is purged (not only removed),
e.g. by running "apt-get purge systemd-shim", or that at least version
6-3 of systemd-shim is installed (if you don't use systemd as init).

Ansgar

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can't startx as normal user Draco Metallium(Rodrigo S. Cañibano) <draco.kun@gmail.com> - 2015-11-30 05:50 +0100
  Re: Can't startx as normal user Charlie <ariestao@ipstarmail.com.au> - 2015-11-30 06:10 +0100
  Re: Can't startx as normal user Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2015-11-30 10:20 +0100
    Re: Can't startx as normal user Draco Metallium(Rodrigo S. Cañibano) <draco.kun@gmail.com> - 2015-11-30 23:30 +0100
      Re: Can't startx as normal user Sven Arvidsson <sa@whiz.se> - 2015-12-01 20:50 +0100
        Re: Can't startx as normal user Draco Metallium(Rodrigo S. Cañibano) <draco.kun@gmail.com> - 2015-12-02 02:30 +0100
          Re: Can't startx as normal user Sven Arvidsson <sa@whiz.se> - 2015-12-02 15:50 +0100
  Re: Can't startx as normal user Harald Dunkel <harald.dunkel@aixigo.de> - 2015-11-30 11:40 +0100

csiph-web