1 |
On Tuesday, 27 October 2020 12:35:25 GMT edes wrote: |
2 |
> el Tue, 27 Oct 2020 13:15:32 +0100 |
3 |
> |
4 |
> Arve Barsnes <arve.barsnes@×××××.com> escribió: |
5 |
> > If you've migrated to elogind, you have probably moved away from a |
6 |
> > setuid xorg-server. I'd start loooking here: |
7 |
> > https://wiki.gentoo.org/wiki/Non_root_Xorg |
8 |
> |
9 |
> Hi, thanks for the response. I had read that document (and others), but |
10 |
> I thought it addressed the problem of not being able to start Xorg as |
11 |
> regular user, which is not my case. |
12 |
> |
13 |
> Just to be sure: I should enable the -suid USE flag in |
14 |
> x11-base/xorg-server? |
15 |
|
16 |
Running Xorg with suid is insecure and can lead to privilege escalation. So |
17 |
this method of running Xorg is no longer recommended. |
18 |
|
19 |
The systemd-logind and elogind by default only allow you to run X on the |
20 |
console you have logged in as a user - this is controlled by the corresponding |
21 |
pam module (e.g. pam-elogind.so). |
22 |
|
23 |
As I understand it systemd-logind and its elogind derivative both use the |
24 |
variable $XDG_VTNR to set the VT number. I suppose this variable could be set |
25 |
to a different VT than the console you login, via .xinitrc, or .xserverrc, or |
26 |
.bashrc - but I haven't tried it out. |