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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-08-2007, 06:10 PM
|
#1
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Rep:
|
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,
|
|
|
12-08-2007, 06:23 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
Please post the output of ls -l /dev/sr{0,1}
|
|
|
12-08-2007, 06:29 PM
|
#3
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
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
|
|
|
12-08-2007, 06:33 PM
|
#4
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
Are you a member of the 'disk' group?
To find out if your user is a member of disk, use 'grep ^disk: /etc/group'
|
|
|
12-08-2007, 06:40 PM
|
#5
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
Does not look like it;
[mmartine@localhost etc]$ grep ^disk: /etc/group
disk:x:6:root
|
|
|
12-08-2007, 06:43 PM
|
#6
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
There is your problem. Add yourself to the disk group.
|
|
|
12-08-2007, 07:10 PM
|
#7
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
12-08-2007, 07:26 PM
|
#8
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
as root :
chmod g+w /dev/sg{0,1,2,3}
(adds write permission to the group)
|
|
|
12-08-2007, 08:18 PM
|
#9
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
Still no devices in some applications or file browser.
Any other suggestions?
Thanks,
|
|
|
12-08-2007, 11:51 PM
|
#10
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
12-09-2007, 03:39 AM
|
#11
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
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 root  ptical /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.
|
|
|
12-09-2007, 04:30 AM
|
#12
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596
Rep:
|
chmod g+w /dev/sr{0,1}
|
|
|
12-09-2007, 10:51 PM
|
#13
|
LQ Newbie
Registered: Dec 2007
Posts: 9
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 09:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|