LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to give permission to DVD-ROM? (https://www.linuxquestions.org/questions/mandriva-30/how-to-give-permission-to-dvd-rom-136206/)

Micro420 01-21-2004 01:16 AM

Quote:

Originally posted by leonscape
I entered the wrong line on the first device. I used ide instead of scsi. sorry. So the commad should of been:

ls -l /dev/scsi/host0/bus0/target0/lun0/cd

Please do this anyway as we need to check some things.

Anyway we've got the DVD's Line we can disect.
brw------- 1 ken cdrom 22, 64 Dec 31 1969 /dev/ide/host0/bus1/target1/lun0/cd

this tells us that ken owns the device and the cdrom is its group. Also its tells us that rw is only allowed to ken. Not even the group can access it. Thats a problem. So we need to change that.

chmod g+r /dev/ide/host0/bus1/target1/lun0/cd

This command ( change mode ) will add read permissions for the group ( g+r ). Now try the DVD drive again. If your logged in as ken this shouldn't be needed but maybe the program reading the DVD doesn't have permission to do so.

This set up you have is quite unusual as root is normally the owner of all devices.

Here is the output of the CD-RW drive with your corrected command:

[ken@localhost ken]$ ls -l /dev/scsi/host0/bus0/target0/lun0/cd
brw-rw---- 1 ken cdrom 11, 0 Dec 31 1969 /dev/scsi/host0/bus0/target0/lun0/cd


I put the chmod g+r /dev/ide/host0/bus1/target1/lun0/cd and it really didn't do anything? I'm still unable to play audio CD's in my KSCD. Do I point it to /dev/hdd or /dev/cdrom?

Thanks again for helping me. I appreciate it.

leonscape 01-21-2004 03:48 AM

/dev/hdd is the device for the DVD. /dev/cdrom probably points the the CDRW.

I created a symbolic link for my devices /dev/dvd and /dev/cdrw so I wouldn't get confused about whats where. For you to do this type the lines

cd /dev
ln -s scd0 cdrw
ln -s hdd dvd

This creates a nice couple of links for you. If you notice in the line you'll see that the group rw is available for you CD-RW. So this is probably what was missing from the DVD.

Or you still had KsCD still pointing to the CD-RW when the disc was in the DVD. You have to maually select this as the device selection isn't automatic.

Micro420 01-21-2004 12:06 PM

Quote:

Originally posted by leonscape
/dev/hdd is the device for the DVD. /dev/cdrom probably points the the CDRW.

I created a symbolic link for my devices /dev/dvd and /dev/cdrw so I wouldn't get confused about whats where. For you to do this type the lines

cd /dev
ln -s scd0 cdrw
ln -s hdd dvd

This creates a nice couple of links for you. If you notice in the line you'll see that the group rw is available for you CD-RW. So this is probably what was missing from the DVD.

Or you still had KsCD still pointing to the CD-RW when the disc was in the DVD. You have to maually select this as the device selection isn't automatic.

Actually, I wonder if my DVD drive is broken. lol

Even in Windows, when I popped in a CD, it didn't recognize anything.

When I tell it to eject or play in KSCD/Mplayer, it sounds like it's trying to read the DVD but it makes a weird clicking noise over and over. It doesn't even spin. Maybe my DVD player is just dead! lol noooo!!!!!!

leonscape 01-21-2004 12:27 PM

Yep that would do it. ;)

I've had drives die on me like this. Time for a new one, maybe even a DVD-R ( or similar ), I always use dead stuff as an excuse to upgrade :)

Micro420 01-21-2004 01:41 PM

Quote:

Originally posted by leonscape
Yep that would do it. ;)

I've had drives die on me like this. Time for a new one, maybe even a DVD-R ( or similar ), I always use dead stuff as an excuse to upgrade :)

Thanks for your help leonscape. I really appreciate it, even though it was probably a hardware problem in the first place! I'm sure someone else in some time will need to know how to give permission to a drive and your steps will help them out. :)


All times are GMT -5. The time now is 05:21 AM.