Gentoo Archives: gentoo-user

From: "i.Dark_Templar" <darktemplar@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] xorg-server[elogind,-suid] and starting additional Xorg session from running Xorg session
Date: Thu, 23 Jul 2020 12:15:42
Message-Id: 6f0a4fa8-79e5-a492-744f-c9b11cd20d97@dark-templar-archives.net
1 Hi.
2
3 I've tried using xorg-server[elogind,-suid] and got an issue.
4
5 With x11-base/xorg-server-1.20.8[elogind,suid] I could just do "sudo -i
6 -u another-user DISPLAY= XAUTHORITY= startx $application $app_args --
7 :$nextdisplay" from running X11 session and get myself a separate new
8 X11 session running from different user.
9
10 With x11-base/xorg-server-1.20.8-r1[elogind,suid] it is also possible to
11 do this if line 'allowed_users = anybody' is added to file
12 '/etc/X11/X11/Xwrapper.config'.
13
14 But with x11-base/xorg-server-1.20.8-r1[elogind,-suid] I couldn't make a
15 similar setup to work. I've tried adding options '-keeptty' or 'vt?' or
16 both, but all I get are errors like these:
17
18 Fatal server error:
19 (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
20
21 or
22
23 Fatal server error:
24 (EE) xf86OpenConsole: Cannot open virtual console 5 (Permission denied)
25
26
27 Is it possible to make setup like this work with elogind without suid?

Replies