I use pam_console which changes the ownership of
/dev/dri/* according to the user who logs in. So, if
andreas logs in, /dev/dri/card0 is andreas:root mode 0600.
If I start X (be it via startx, or kde, or just X),
then the X server resets the ownership to root:root
mode 0660. I'm not using the "section DRI" part to set
permissions on the dri devices, yet X is still touching
it. It shouldn't. Or is there some X configuration
option that makes it not change the dri devices
ownership/mode?
I'm using XFree86-4.4.0 with the ATI driver (supplied
with X, not the ATI-supplied one). Kernel is 2.6.5.
Apart from this issue, DRI works great here.
Logged In: YES
user_id=546104
You can change the permissions and group membership of the
DRI device nodes in the DRI section of your XF86Config-4
file. See http://www.xfree86.org/current/DRI.html for details.
Logged In: YES
user_id=978044
I don't need to have the extra burden of having to add my
users to some dri group. The permissions are already OK on
the dri devices, X is messing them up. I have no DRI section
in XF86Config-4 and X is still changing ownership of the dri
devices to root.
Logged In: YES
user_id=546104
You need to understand that X is not "messing" with those
permissions, it's controling them. This is a feature, not a
bug (don't blame me for it ;-). If you want to change them,
do that in your XF86Config. If you want all users to have
access to the dri device files add this in your XF86Config:
Section "DRI"
Mode "666"
EndSection
No need to make a group and add users to it.
Logged In: YES
user_id=978044
>Section "DRI"
> Mode "666"
>EndSection
>
>No need to make a group and add users to it.
If I didn't care about security, that's what I would do
indeed. I don't need another world-writable device.
I would better understand (and agree) with X if I had this
section in XF86Config-4, but I don't, and X is still
chowning the device when it shouldn't, there is no need. The
pam way of setting these permissions is much better than the
X way, because it only gives those permissions to one user
at a time and revokes them once the user logs out from the
console.