LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2004, 02:26 AM   #1
rakesh_em
LQ Newbie
 
Registered: Sep 2004
Location: India
Distribution: Slackware,Mandrake,Fedora
Posts: 14

Rep: Reputation: 0
Unhappy 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.
 
Old 10-06-2004, 02:42 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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.
 
Old 10-06-2004, 02:43 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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
 
Old 10-06-2004, 02:56 AM   #4
rakesh_em
LQ Newbie
 
Registered: Sep 2004
Location: India
Distribution: Slackware,Mandrake,Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 10-06-2004, 02:58 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
<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

Last edited by gbonvehi; 10-06-2004 at 03:21 AM.
 
Old 10-06-2004, 03:10 AM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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?
 
Old 10-06-2004, 02:33 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't play DVD's gerardo069872 Linux - Hardware 11 11-09-2005 04:58 PM
Is there a way to play DVD's from your hd? mrd Linux - Software 1 04-30-2004 06:37 AM
Play DVD's equinox Mandriva 34 04-17-2004 03:30 AM
How to play DVD's? Braveheart1980 Linux - General 6 01-25-2004 08:00 PM
cant play dvd's CRego3D Linux - Laptop and Netbook 11 10-01-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration