LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2003, 02:41 AM   #1
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
setuid for cdparanoia?


quick question. on my laptop, i set my dvd/cdrom device to use scsi emulation in grub.conf -> hdc=ide-scsi. i've just since the change tried to rip a cd track using ripperx. it told me that cdparanoia had to be either run as root or the setuid bit set. this has a me a little paranoid. grip doesn't work either without cdparanoia set this way. instead of ripping and encoding it will idle and just play the track. with the setuid bit set, it will rip and encode, but the output file will be incomplete (128 B for a whole song?). ripperx wouldn't read the tracks without the setuid bit set, but with it set, it ripped and encoded perfectly. so i guess, a couple of questions.

1. why now with scsi emulation set does cdparanoia need to have the setuid bit set?
it didn't before when /dev/cdrom pointed to /dev/hdc but does now that /dev/cdrom points to /dev/scd1.

2. how do i get grip to work correctly with this setup?

thanks for your consideration and help.

edit: nevermind for question 2. it seems that it was a fluke thing as i re-ripped the songs with setuid on again and it ripped fine. gonna chalk that one up to gremlins.

Last edited by megaspaz; 10-12-2003 at 02:48 AM.
 
Old 10-12-2003, 08:32 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
1. Check the permissions for /dev/scd1 (ls -l /dev | grep scd1). Most likely /dev/hdc is set up to allow all users to read from it, but the scd1 device is brw-rw----, meaning "anyone" doesn't have that permission.

The way I usually solve this problem is to add your username to the group 'cdrom' and chmod g+rw /dev/scd1 if needed. This means that everyone belonging to the group 'cdrom' will have read and write access to the CD device. You have to log out and then log in again for the group changes to take effect.

hw

Edited for spelign and clarity

Last edited by hw-tph; 10-12-2003 at 08:34 AM.
 
  


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
setuid int0x80 Linux - Security 3 12-02-2005 01:33 PM
How to setuid root abridge Linux - Newbie 4 04-06-2005 03:59 PM
setuid Help devinWhalen Linux - General 2 12-03-2003 09:57 AM
cdparanoia help eduac Linux - Hardware 5 10-30-2003 05:59 AM
Setuid SirTurbo Linux - General 1 03-26-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 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