LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2007, 06:10 PM   #1
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Rep: Reputation: 0
device permissions after libdvdcss install


I can no longer see my dvd or cd after I installed libdvdcss.
I used yum for the install.
sudo yum install k9copy
sudo yum install libdvdcss libdvdread libdvdplay libdvdnav lsdvd libdvbpsi

After install /dev permissions = :
lrwxrwxrwx 1 root root 3 2007-12-08 16:20 cdrw -> sr0
lrwxrwxrwx 1 root root 3 2007-12-08 16:20 cdrom -> sr0
lrwxrwxrwx 1 root root 3 2007-12-08 16:20 cdrw1 -> sr1
lrwxrwxrwx 1 root root 3 2007-12-08 16:20 cdrom1 -> sr1

lrwxrwxrwx 1 root root 3 2007-12-08 16:20 dvdrw -> sr0
lrwxrwxrwx 1 root root 3 2007-12-08 16:20 dvd -> sr0

I didn't make any modifications to /etc/fstab.

Any suggestions?

Thanks,
 
Old 12-08-2007, 06:23 PM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Please post the output of ls -l /dev/sr{0,1}
 
Old 12-08-2007, 06:29 PM   #3
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
results of ls -l

[mmartine@localhost ~]$ ls -l /dev/sr{0,1}
brw-r----- 1 root disk 11, 0 2007-12-08 16:20 /dev/sr0
brw-r----- 1 root disk 11, 1 2007-12-08 16:20 /dev/sr1
 
Old 12-08-2007, 06:33 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Are you a member of the 'disk' group?
To find out if your user is a member of disk, use 'grep ^disk: /etc/group'
 
Old 12-08-2007, 06:40 PM   #5
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Does not look like it;

[mmartine@localhost etc]$ grep ^disk: /etc/group
disk:x:6:root
 
Old 12-08-2007, 06:43 PM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
There is your problem. Add yourself to the disk group.
 
Old 12-08-2007, 07:10 PM   #7
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I want to thank you for your help here.
I couldn't figure this out the first time and did a re-install.


I added my user name to the disk group.

[mmartine@localhost etc]$ grep ^disk: /etc/group
disk:x:6:root,mmartine

Still have issues with some of the applications.
My current permissions on /dev/sg* are:
[mmartine@localhost dev]$ ls -lart /dev/sg*
crw-r----- 1 root disk 21, 0 2007-12-08 17:56 /dev/sg0
crw-r----- 1 root disk 21, 1 2007-12-08 17:56 /dev/sg1
crw-r----- 1 root disk 21, 2 2007-12-08 17:56 /dev/sg2
crw-r----- 1 root disk 21, 3 2007-12-08 17:56 /dev/sg3

K3B gave error message:

No write access to device /dev/sr1
K3b needs write access to all the devices to perform certain tasks. Without it you might encounter problems with CDWRITER - IDE5232
Solution: Make sure you have write access to /dev/sr1. In case you are not using devfs or udev K3bSetup is able to do this for you.

No write access to generic SCSI device /dev/sg3
Without write access to the generic device you might encounter problems with Audio CD ripping from CDWRITER - IDE5232
Solution: Make sure you have write access to /dev/sg3. In case you are not using devfs or udev K3bSetup is able to do this for you.

No write access to device /dev/sr0
K3b needs write access to all the devices to perform certain tasks. Without it you might encounter problems with DVDRW - IDE1004
Solution: Make sure you have write access to /dev/sr0. In case you are not using devfs or udev K3bSetup is able to do this for you.

No write access to generic SCSI device /dev/sg2
Without write access to the generic device you might encounter problems with Audio CD ripping from DVDRW - IDE1004
Solution: Make sure you have write access to /dev/sg2. In case you are not using devfs or udev K3bSetup is able to do this for you.
 
Old 12-08-2007, 07:26 PM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
as root :
chmod g+w /dev/sg{0,1,2,3}

(adds write permission to the group)
 
Old 12-08-2007, 08:18 PM   #9
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Still no devices in some applications or file browser.

Any other suggestions?

Thanks,
 
Old 12-08-2007, 11:51 PM   #10
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I noticed the permissions for the block device were different from a later install.

Before libdvdcss install:
brw-rw----+ 1 root disk 11, 0 2007-12-08 22:28 /dev/sr0
brw-rw----+ 1 root disk 11, 1 2007-12-08 22:28 /dev/sr1

After libdvdcss install:
brw-r----- 1 root disk 11, 0 2007-12-08 16:20 /dev/sr0
brw-r----- 1 root disk 11, 1 2007-12-08 16:20 /dev/sr1

The write permission for group and there is a "+" are different.

What is the "+" for and how is this set in chmod?

Thanks again,





Could this be part of the issue.
 
Old 12-09-2007, 03:39 AM   #11
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Give programs accessing scsi (or scsi emulated) devices through pass-through dev (sg*) SUID permissions.
It can be done with K3b setup or manually (as root) by
#chmod 4711 /path/to/cdrecord
#chmod 4711 /path/to/cdrdao
If you are a paranoid and do not want anyone else using optical drives but you, add a group to your system (ie optical) and
#chown rootptical /path/to/cdrecord
#chmod 4710 /path/to/cdrecord
and so on..
Just remember adding yourself into optical group
Hope this helps
ciao

Last edited by urka58; 12-09-2007 at 03:42 AM.
 
Old 12-09-2007, 04:30 AM   #12
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
chmod g+w /dev/sr{0,1}
 
Old 12-09-2007, 10:51 PM   #13
mmartine
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Tried both solutions above with no success.

I think the problems was the umask settings when I installed k9copy and necessary libraries...

Time to punt..

Reinstall and start clean..

Any one know of a good solid set of instructions to get dvd/cd applications working like k9copy etc..?

Thanks for everyones help here...
 
  


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
slackbuild libdvdcss win32 codec; permissions issue cmk77 Slackware 4 08-03-2007 07:00 AM
How do I downgrade from a libdvdcss-1.2.9 rpm to libdvdcss-1.2.6 compiled from source LiquidSlumber Linux - Software 2 02-17-2006 11:18 PM
how to install libdvdcss ucit Linux - Software 1 10-17-2005 12:17 PM
libdvdcss install frustration Radiolarian Linux - Newbie 5 01-23-2005 08:45 AM
how do you install libdvdcss??? Zieroth Linux - Software 5 07-16-2004 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 PM.

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