On Thu, 4 Oct 2001, Matthew Garman wrote: > > The permissions on /dev/dri look like the following by default: > > # ls -la /dev/dri > total 23 > drwxrwx--- 2 root root 1024 Aug 10 19:08 ./ > drwxr-xr-x 6 root root 21504 Oct 4 16:12 ../ > crw-rw---- 1 root root 226, 0 Aug 10 19:08 card0 > > What is the "correct" way to allow ordinary (i.e. non-root) users to > access this device? > > I have been setting the directory permission on /dev/dri to 777 and > /dev/dri/card0 to 666. But this probably isn't the correct approach, and > these permissions seem to reset back to default. > > Should I make a "3d" group or something like that? If I do, will the > device ownership always fall back to root.root?
X always runs with superuser privs, so it can open a device owned by root/root. There is a special configuration directive in XF86Config that tells X about the DRI devices: Section "DRI" Mode 0666 EndSection Check out the documentation here: http://www.xfree86.org/current/DRI6.html#10 -jwb