On Tuesday, 27 October 2020 12:35:25 GMT edes wrote:
> el Tue, 27 Oct 2020 13:15:32 +0100
> 
> Arve Barsnes <arve.bars...@gmail.com> escribió:
> > If you've migrated to elogind, you have probably moved away from a
> > setuid xorg-server. I'd start loooking here:
> > https://wiki.gentoo.org/wiki/Non_root_Xorg
> 
> Hi, thanks for the response. I had read that document (and others), but
> I thought it addressed the problem of not being able to start Xorg as
> regular user, which is not my case.
> 
> Just to be sure: I should enable the -suid USE flag in
> x11-base/xorg-server?

Running Xorg with suid is insecure and can lead to privilege escalation.  So 
this method of running Xorg is no longer recommended.

The systemd-logind and elogind by default only allow you to run X on the 
console you have logged in as a user - this is controlled by the corresponding 
pam module (e.g. pam-elogind.so).

As I understand it systemd-logind and its elogind derivative both use the 
variable $XDG_VTNR to set the VT number.  I suppose this variable could be set 
to a different VT than the console you login, via .xinitrc, or .xserverrc, or 
.bashrc - but I haven't tried it out.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to