GNU bug report logs - #25865
xinit does not allow non-root startx

Previous Next

Package: guix;

Reported by: Alex Vestgaard <birkeroed <at> protonmail.ch>

Date: Fri, 24 Feb 2017 18:51:01 UTC

Severity: normal

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: 宋文武 <iyzsong <at> envs.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#25865: closed (xinit does not allow non-root startx)
Date: Fri, 11 Aug 2023 10:11:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 11 Aug 2023 18:10:13 +0800
with message-id <87zg2xc2ka.fsf <at> envs.net>
and subject line Re: bug#25865: xinit does not allow non-root startx
has caused the debbugs.gnu.org bug report #25865,
regarding xinit does not allow non-root startx
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
25865: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25865
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alex Vestgaard <birkeroed <at> protonmail.ch>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: xinit does not allow non-root startx
Date: Fri, 24 Feb 2017 13:27:15 -0500
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: 宋文武 <iyzsong <at> envs.net>
To: Alex Vestgaard <birkeroed <at> protonmail.ch>
Cc: 25865-done <at> debbugs.gnu.org
Subject: Re: bug#25865: xinit does not allow non-root startx
Date: Fri, 11 Aug 2023 18:10:13 +0800
Alex Vestgaard <birkeroed <at> protonmail.ch> writes:

> 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..


This bug report was last modified 1 year and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.