Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-08-2006, 04:40 PM   #1
Senior Member
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

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


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:

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:

 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:

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.

Old 02-08-2006, 05:40 PM   #2
Senior Member
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

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


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 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 PM.

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