openSUSE Forums > Applications > Multimedia » Permissios in /dev caused failure to play video dvd

Go Back   openSUSE Forums > Applications > Multimedia
Forums FAQ Members List Search Today's Posts Mark Forums Read


Multimedia Questions about media applications, codecs (DVD, music, video, pdf) configuration (usage, bugs)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-Dec-2008, 07:04
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
nvliet hasn't been rated much yet
Default Permissios in /dev caused failure to play video dvd

Hi,
I would like to tel you about my experience with opensuse 11.1 and video playback with css protected disks.
I installed openSUSE without any problems.
Then added the packman repository and
http://suse.linuxin.dk/repo/11.1/
for libdvdcss and installed al the restricted stuff.

Finally I could play video's with xine, but only as root.

Checking the permissions i found:
nico@elcheapo:~/Documents> ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 2008-12-22 13:37 /dev/dvd -> sr0
nico@elcheapo:~/Documents> ls -l /dev/sr0
brw-rw---- 1 root disk 11, 0 2008-12-22 13:37 /dev/sr0

Note that /dev/sr0 is group disk.
I added myself to this group in /etc/group and after logging out and in again I couls use xine in my own account.

Hope this helps

Nico
Reply With Quote
  #2 (permalink)  
Old 22-Dec-2008, 08:42
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,229
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Permissios in /dev caused failure to play video dvd

Hmm, that's rather dangerous because the hard disks are also in group disk, so it means that anybody with your account privileges can read the raw disk and look for things like passwords. Shouldn't the DVD devices belong to group cdrom and resmgr gives you access to cdrom when you login at the GUI console?
Reply With Quote
  #3 (permalink)  
Old 22-Dec-2008, 10:00
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
nvliet hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

You me be right, but this is the situation I found after installing from the Live cd.
Could it be because the dvd drive is the only device on the only IDE interface and is jumpered as master? My hard drive is on the sata controller of an 750/630a nforce chipset.

Regards,
Nico
Reply With Quote
  #4 (permalink)  
Old 22-Dec-2008, 11:33
Busy Penguin
 
Join Date: Jun 2008
Posts: 390
RedDwarf hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

https://bugzilla.novell.com/408252

It's assigned to kde-maintainers... if someone can verify if this also happens with KDE3 and/or Gnome it could help to find the cause.
Reply With Quote
  #5 (permalink)  
Old 22-Dec-2008, 12:26
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
nvliet hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

Hi,

Thanks for the answer.
My opensuse 11.0 PC that I am working on now does not have the problem, i.e. I can play dvd video without adding myself to the 'disk' group.
I will try the workaround as soon as I have the time.
Regards,
Nico
Reply With Quote
  #6 (permalink)  
Old 23-Dec-2008, 10:47
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
nvliet hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

I did a reinstall with the installation dvd.
Selected gnome.
Had the same problem. On my account could not play video with totem
but root could.
I could after adding myself to 'disk' group.
Reply With Quote
  #7 (permalink)  
Old 23-Dec-2008, 15:10
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
firux hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

I've same problem on KDE3, openSUSE 11.1. libdvdcss is installed, but still not be able to paly back DVD movies. I've also tried to add myself to DSIK GROUP, but it didn't help. Any suggestion?
Reply With Quote
  #8 (permalink)  
Old 23-Dec-2008, 15:29
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 3
Romppainen hasn't been rated much yet
Default Re: Permissions in /dev caused failure to play video dvd

I have the same problem. Did just the same as nvliet, installed OpenSuse 11.1 without problems, added the libdvdcss stuff and presto, no access to dvd. I couldn't even add programs from the dvd, had to remove it from the list of upgrade sources.

Now when I insert a DVD video in the drive it appears on the Desktop. When I choose open with Totem it starts Totem but it stops with a message: Error: Cannot read the resource (translation from finnish error message)

I will try the same fix...
Reply With Quote
  #9 (permalink)  
Old 23-Dec-2008, 15:41
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
firux hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

I forgot to mention that codecs-kde is also installed, but still not any answer. I DVD device is detected, but when i insert DVD videos to device, got errror message from Kaffeine: this version of Xine doesn't support codecs.
Reply With Quote
  #10 (permalink)  
Old 30-Dec-2008, 04:28
Puzzled Penguin
 
Join Date: Nov 2008
Posts: 9
depeje hasn't been rated much yet
Default Re: Permissios in /dev caused failure to play video dvd

Quote:
Originally Posted by ken_yap View Post
Hmm, that's rather dangerous because the hard disks are also in group disk, so it means that anybody with your account privileges can read the raw disk and look for things like passwords. Shouldn't the DVD devices belong to group cdrom and resmgr gives you access to cdrom when you login at the GUI console?
I've got the exact same problem, so I went looking on my media center how it comes it CAN play dvd's as a normal user.

Code:
krusty:/dev # ls -all | grep sr
lrwxrwxrwx   1 root root          3 2008-06-05 02:00 cdrom1 -> sr0
lrwxrwxrwx   1 root root          3 2008-06-05 02:00 cdrw1 -> sr0
lrwxrwxrwx   1 root root          3 2008-06-05 02:00 dvd -> sr0
lrwxrwxrwx   1 root root          3 2008-06-05 02:00 dvdrw1 -> sr0
srw-rw-rw-   1 root root          0 2008-12-28 12:00 log
lrwxrwxrwx   1 root root          3 2008-06-05 02:00 scd0 -> sr0
brw-rw----+  1 root disk    11,   0 2008-06-05 02:00 sr0
krusty:/dev # cat /etc/group | grep nijs
dialout:x:16:admin,nijs,smartwiki
disk:x:6:admin,nijs
video:x:33:admin,nijs,smartwiki
vboxusers:!:1000:nijs
krusty:/dev # ls -all | grep sda
brw-r-----   1 root disk     8,   0 2008-06-05 02:00 sda
brw-r-----   1 root disk     8,   1 2008-06-05 02:00 sda1
brw-r-----   1 root disk     8,   2 2008-06-05 02:00 sda2
brw-r-----   1 root disk     8,   3 2008-06-05 02:00 sda3
The reason why my suse 11.0 based media center can play dvd's is obvious, however I can't remember adding the user "nijs" to the disk group. I surely wouldn't have done this myself. The user "admin" also got in there on its own.

So I guess the reason it doesn't work anymore really is the rights thingy.

The best way to solve this seems to me to add yourself to the "cdrom" group, which seems to exist already and change the group owner of /dev/sr0 to cdrom. I only don't know how to let this setting survive a reboot.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2