LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2006, 04:40 PM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
permission problems with udev: can't access dvd


Hi,

My problem is the following: I am in an advanced stage of an linux from scratch installation. The latest stable LFS uses udev to manages devices.

I just installed mplayer. The problem is that a non-root user cannot play dvd's. I have the following line added to the "/etc/udev/rules.d/10-local.rules" file:

Code:
BUS="ide", KERNEL="hdc", GROUP="cdrom", NAME="%k", SYMLINK="dvd", MODE="0660"
So my hdc is the dvd device. After this, I added the user "sohail" (me ) to the "cdrom" group by doing "usermod -G cdrom sohail".

After this, mplayer still refuses to play a dvd:

Code:
 mplayer dvd://1
MPlayer 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Duron Spitfire (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx


85 audio & 196 video codecs
Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)
Playing dvd://1.
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd


Exiting... (End of file)
Looking at the permission of the devices:

Code:
sohail@thabox:~$ ls -al /dev/dvd
lrwxrwxrwx  1 root root 3 2006-02-09 00:35 /dev/dvd -> hdc
sohail@thabox:~$ ls -al /dev/hdc
brw-rw----  1 root cdrom 22, 0 2006-02-08 21:18 /dev/hdc
So it looks like users from the "cdrom" group should be able to read from the device. The permissions of the symlink do not matter (I am told)

The only way I can get a regular user to play dvd'd is by changing the mode parameter in the file 10-local.rules to MODE="0666", but I do not know how desirable that is... (everyone will be able to read the device).

Can someone give me some advice on the issue.

Thanks
 
Old 02-08-2006, 05:40 PM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Never mind guy's. A reboot fixed the problem...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access permission problems in XAMPP in SuSE 9.1 ClarkNG Linux - Newbie 1 07-20-2006 11:31 PM
creative zen touch usb permission problem ( udev ) bad_zeppelin Linux - Hardware 1 10-10-2005 05:48 AM
permission problems: access Win as user digitalhead Slackware 19 07-24-2005 04:26 AM
Slackware 10 cdrom/dvd user access problems beyondzero Slackware 7 06-27-2004 05:21 AM
/dev/dvd permission problems contrasutra Linux - Software 3 05-24-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 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
Open Source Consulting | Domain Registration