Stefan Hagen <[email protected]> wrote:

> Crystal Kolipe wrote:
> > On Sat, Jan 08, 2022 at 08:15:43PM +0100, Stefan Hagen wrote:
> > > Start X via xenodm and not via startx. Then it runs through 
> > > /etc/X11/xenodm/GiveConsole, which contains:
> > > 
> > > if [ -c /dev/dri/card0 ]; then
> > >     chown $USER /dev/dri/card0
> > > fi
> > > 
> > > Alternatively add the chown command above to your .xinitrc
> >                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > WHAT!?
> > 
> > /dev/dri/card0 will be automatically chown'ed to the user logged in on
> > ttyC0 unless you've changed /etc/fbtab from the default.
> > 
> > Additionally, /etc/X11/xinit is run as the calling user, not as root.
> > So how on earth would the chown command succeed, called from xinit?
> 
> doas(1) helps. But the whole suggestion was a bandaid. I should not have
> given it.

What unbelievable terrible advice, to encourage people to make their
accounts root-equivelant.

Just wow.





Reply via email to