[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dri, permissions and creation



On Fri, Apr 16, 2004 at 07:39:00PM +0200, John L Fjellstad wrote:
> Does anyone know when and how /dev/dri/card0 is created?  And where the
> permissions are set?  I tried searching on google, but couldn't find
> anything.  
> 
> The problem is that the dri/card0 is created with permissions root.root
> 0660, which means I can't access it as a normal user.  Which creates
> problems, since I won't be able to get propert GL support with my Ati
> Radeon card.

On my system it says
joachim@debian:~$ ls -l /dev/dri/
insgesamt 0
crw-rw-rw-    1 root     root      10,  63 2004-04-09 12:30 card0

I guess it comes from the lines in /etc/X11/XF86Config-4

# This loads the DRI module
    Load        "dri"
    EndSection

# Makes DRI available to all users
Section "dri"
      Mode 0666
EndSection
	
> 
> I changed the permissions manually to 0666, but I noticed that whenever
> I log out from X, the permission get reset to 0660.
> 
> Thanks,
> -- 
> John L. Fjellstad
> web: http://www.fjellstad.org/          Quis custodiet ipsos custodes
> 

HTH
-- 
Joachim Fahnenmüller

# Hi! I'm a .signature virus. Copy me into
# your ~/.signature to help me spread!



Reply to: