xinit does not allow non-root startx

  • Done
  • quality assurance status badge
Details
3 participants
  • Alex Vestgaard
  • ???
  • Ludovic Courtès
Owner
unassigned
Submitted by
Alex Vestgaard
Severity
normal
A
A
Alex Vestgaard wrote on 24 Feb 2017 19:27
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
bPxWsXKl30lIGkz7qROAZ5Jp5oDKVWHsoYvrAm1HWzwUu7nvmTur0yhIKawRZJVqXlxh2e0QRvY8aDsvF1joNOrc3GSmaEWh0gvTue3JwKY=@protonmail.ch
Hi,

xinit suffers from an upstream bug, which does not allow non-root X to be run without a display manager via startx or xinitrc. Several people have reported this on #guix.

Currently if one runs startx as non-root, X reports:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

This bug is further discussed in [1]. Redhat seems to have a patch [2], but it is unclear to me whether this has been applied upstream.

Attachment: file
L
L
Ludovic Courtès wrote on 7 Mar 2017 22:40
(name . Alex Vestgaard)(address . birkeroed@protonmail.ch)(address . 25865@debbugs.gnu.org)
87o9xcrcit.fsf@gnu.org
Hello,

Alex Vestgaard <birkeroed@protonmail.ch> skribis:

Toggle quote (10 lines)
> xinit suffers from an upstream bug, which does not allow non-root X to be run without a display manager via startx or xinitrc. Several people have reported this on #guix.
>
> Currently if one runs startx as non-root, X reports:
> (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
>
> This bug is further discussed in [1]. Redhat seems to have a patch [2], but it is unclear to me whether this has been applied upstream.
>
> [1] https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1203780

Did you have a change to try Red Hat’s patch? It could be a good
starting point.

Thanks for your report,
Ludo’.
?
(name . Alex Vestgaard)(address . birkeroed@protonmail.ch)(address . 25865-done@debbugs.gnu.org)
87zg2xc2ka.fsf@envs.net
Alex Vestgaard <birkeroed@protonmail.ch> writes:

Toggle quote (13 lines)
> Hi,
>
> xinit suffers from an upstream bug, which does not allow non-root X to be run without a display manager via startx or xinitrc. Several
> people have reported this on #guix.
>
> Currently if one runs startx as non-root, X reports:
> (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
>
> This bug is further discussed in [1]. Redhat seems to have a patch [2], but it is unclear to me whether this has been applied upstream.
>
> [1] https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1562219
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1203780

Hello, for 'xinit', you can create a '~/.xserverrc` file with:

tty=$(tty)
tty=${tty#/dev/tty}
X vt${tty}

then it will run a non-root X from current tty. Also 'sx' works fine.

Closing now..
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 25865@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 25865
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch