1

If I run CDM (Console Display Manager) as root, it works fine. If I run it as any other user, CDM loads, requests a choice for WM, and then exits. There is no readable output to stdout or stderr.

How can I debug this?

I turned on logging of startx output. It says this:

X: user not authorized to run the X server, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

BTW, I am running Debian Jessie, if that helps.

3
  • I think this is intended behavior, because Xorg itself (still) isn't very good at starting as a regular user. Not with restricted graphics drivers anyway. Mar 12, 2014 at 4:11
  • Scanning the source code, I found setsid startx "$@" > /dev/null 2>&1 &. Is it possible to add a sudo to the beginning of that line, so that I can run CDM as normal user and only elevate when starting X. Mar 12, 2014 at 16:48
  • also you could just have run this ::> sudo -su root startx
    – konqui
    Mar 12, 2014 at 18:06

1 Answer 1

1

Got it!!!

Followed this guide which allows ALL users to start the xserver. Previously I had it on console users only. Presumably, since CDM is launching xserver via a script, rather than an interactive console, it doesn't count as a console user.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .