LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to play dvd's (https://www.linuxquestions.org/questions/slackware-14/how-to-play-dvds-239303/)

rakesh_em 10-06-2004 01:26 AM

how to play dvd's
 
How do u play dvd's in slackware 10, I would like all users to be able to access my dvd/cdrom at the moment only the root is able to access the cdrom. moreover in the /mnt path i can only see the cdrom folder.

My fstab looks like this

/dev/hda4 swap swap defaults 0 0
/dev/hda3 / ext2 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/hda5 /fat-d vfat defaults 1 0
/dev/hda6 /fat-e vfat defaults 1 0
/dev/hda7 /fat-f vfat defaults 1 0
/dev/hda8 /fat-g vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/cdrom /cdrom iso9660 noauto,user,ro 0 0


please help. as you can see by my explanation of the situation i am a newbie to linux jus abt getting used to setting file permissions and the likes.

CroMagnon 10-06-2004 01:42 AM

try "ls -l /dev/cdrom" to find out what your cdrom device really is (probably something like hdc or hdd) and then ls -l (device) to find out which group has access to the cd drive, then add your users to that group. Alternatively, do a chmod o+rw if you don't care about all users (even non-human users) being able to read from the device.

Tinkster 10-06-2004 01:43 AM

First of all you should decide which cdrom you
REALLY want in fstab ....

Two mountpoints is one too many.

The more important bit is rwx permissions
for a group, e.g. cdrom on the actual dvd-
device (e.g. /dev/hdc or /dev/scd0) ...

Adding all users to group cdrom.


Done



Cheers,
Tink

rakesh_em 10-06-2004 01:56 AM

for the first command ls -l /dev/cdrom

this was the result
lrwxrwxrwx 1 root root 8 2004-09-24 14:57 /dev/cdrom -> /dev/hdc


so i figured out that /dev/hdc is the cdrom drive

so i gave the second command
ls -l /dev/hdc
and its result was

brw-rw-rw- 1 root disk 22, 0 2002-06-10 02:27 /dev/hdc

which group has access to it and how do you add users to it and which player plays dvd


thanx for your help

gbonvehi 10-06-2004 01:58 AM

<This is useless as CroMagnon pointed, I didn't take a close look at the permissions :) >

disk is the group
So goto /etc/group and in the line that says "disk::6:root" (this may vary) add ",youruser" to make it look like:
Code:

disk::6:root,youruser
Now you have your user in the disk group that has access to hdc

CroMagnon 10-06-2004 02:10 AM

Quote:

brw-rw-rw- 1 root disk 22, 0 2002-06-10 02:27 /dev/hdc
Hmm - all users already have read and write access to this device. Do you have a cdrom drive and a dvd drive in the same machine?

Tinkster 10-06-2004 01:33 PM

Quote:

Originally posted by gbonvehi
<This is useless as CroMagnon pointed, I didn't take a close look at the permissions :) >

disk is the group
So goto /etc/group and in the line that says "disk::6:root" (this may vary) add ",youruser" to make it look like:
Code:

disk::6:root,youruser
Now you have your user in the disk group that has access to hdc

You DON'T want a normal user to be member
of disk, because that would give him permissions
on all raw hdd devices ...

chgrp cdrom for the cdrom would be the way to go,
but as CroMagnon already pointed out his device
permissions are a bit suspect already :)

rakesh, check the output of dmesg to see which
physical device is being associated with your
dvd-drive.



Cheers,
Tink


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