Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suddenly devfsd does not set correct permissions anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Sun Nov 10, 2002 11:23 am    Post subject: suddenly devfsd does not set correct permissions anymore Reply with quote

Everything worked fine but suddenly, devfsd does not set the correct permissions for my cd writer and dvd drive anymore ... I am not able to use them as a normal user.

My /etc/devfsd.conf looks like this:
Code:
# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER        ^sg0$        PERMISSIONS root.cdrw 660
REGISTER        ^sr0$        PERMISSIONS root.cdrw 660
REGISTER        ^sg1$        PERMISSIONS root.cdrom 660
REGISTER        ^sr1$        PERMISSIONS root.cdrom 660

But in /dev, the devices get the following permission:
Code:
lr-xr-xr-x    1 root     root           31 Nov 10 12:16 sr0 -> scsi/host0/bus0/target0/lun0/cd
lr-xr-xr-x    1 root     root           36 Nov 10 12:17 sg0 -> scsi/host0/bus0/target0/lun0/generic
lr-xr-xr-x    1 root     root           31 Nov 10 12:16 sr1 -> scsi/host0/bus0/target1/lun0/cd
lr-xr-xr-x    1 root     root           36 Nov 10 12:17 sg1 -> scsi/host0/bus0/target1/lun0/generic

I've tried everything ... deleted the symlinks, rebooted the computer ... nothing helps. Any idea?
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Wed Nov 13, 2002 7:10 am    Post subject: Reply with quote

No one? Maybe this is the wrong forum for my request... Could a moderator please move this thread into the correct forum?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Wed Nov 13, 2002 4:06 pm    Post subject: Reply with quote

The forum seems apropriate. I've read about devfsd not getting the permissions set, but I've never understood why. If you haven't already, you might do a lengthy search to see if anyone has figured it out.
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
SlCKB0Y
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2002
Posts: 105
Location: Sydney, Australia

PostPosted: Thu Nov 14, 2002 8:28 am    Post subject: Reply with quote

i had the same thing happen with my sound devs. i tried chmodding them but it wouldnt let me, i tried doing all sorts of things. in the end it was solved with a reboot so if u have tried that theni dont know what to suggest
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Thu Nov 14, 2002 1:14 pm    Post subject: Reply with quote

I've rebooted the computer several times now ... still same problem :-(
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Wed Nov 20, 2002 6:16 am    Post subject: Reply with quote

I realised there is a /dev/MAKEDEV file. I've edited it and changed the scsi line to "root users 660" but the permissions of the scsi devices are still root.root 660 :x

So what is used? /dev/MAKEDEV or /etc/devfsd.conf for permission settings?
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Thu Nov 21, 2002 10:01 am    Post subject: Reply with quote

By the way:

As long as I have not started any cdr tool (like k3b for example) which scans the scsi bus for scsi devices, there is a cd device in /dev/scsi/host0/bus0/target0/lun0 named "cd" with correct permissions set (root.cdrw 660). After I've started k3b, there is also a "generic" device with wrong permissions (root.root 660). I did a "kill -HUP" to the devfs daemon for re-reading the configuration files. After that, the "generic" device had the correct permissions!! That's strange, something's wrong there...
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Thu Nov 21, 2002 10:36 am    Post subject: Reply with quote

Found a solution to my problem at
http://lists.gentoo.org/pipermail/gentoo-dev/2002-September/014834.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum