Subject: bug#25865: closed (Re: bug#25865: xinit does not allow non-root startx)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 11 Aug 2023 10:11:02 +0000

Your bug report

#25865: xinit does not allow non-root startx

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
25865: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25865
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#25865: xinit does not allow non-root startx
From: 宋文武 <[email-masked]>
To: Alex Vestgaard <[email-masked]>
Cc: [email-masked]
Date: Fri, 11 Aug 2023 18:10:13 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Alex Vestgaard <[email-masked]> 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..

Subject: xinit does not allow non-root startx
From: Alex Vestgaard <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Fri, 24 Feb 2017 13:27:15 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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