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