Re: seatd

Jorge Almeida <[email protected]>
Newsgroups gmane.linux.gentoo.user
Message-ID <CAKpSnp+t1y9E6C7uUqo1Pb5E=2tg217BCQ6Hy_kpCdn6N74FUg@mail.gmail.com>
On Tue, 17 Mar 2026 at 06:13, Alexis <[email protected]> wrote:

> Jorge Almeida <[email protected]> writes:
>
> > I wonder whether it is possible to use sys-auth/seatd with
> > xorg-server.
>
> I guess no one is using it. Anyway, I solved my problem. Here are the
details in case someone may find it useful.
Context: no systemd, no elogind, no PAM, no display manager. Just gettys in
several VTs. X sessions are started by xinit via custom startx. Important
detail: X is to be run in the same VT where it was started from (Xorg's
flags "-keeptty", ":N", and "vt N", where N is the number of the VT, e.g.
N==3 for /dev/tty3).
Problem: Xorg runs as root
Solution:
(1) remove the suid bit from /usr/bin/Xorg (x11-base/xorg-server has the
USE variable "suid", but for testing purposes it can just be removed by
hand)
(2) put your normal user in the "input" group

This works for me, and I still can't believe how simple it was.
(Disclaimer: it is less than a day since I got it working. Fingers crossed.)

Note: for a single human-user computer, I suppose having a normal user in
the input group is not problematic, security-wise.


Regards,

Jorge Almeida
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.