LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-05-2003, 05:43 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
grip audiocd:/


I'm trying to get grip to rip and encode from my cdrom without being run with root privileges. How can i do this? I have read through some previous posts with nothing working for me. I tried some of the suggestions of changing my fstab entry for my cdrom with no luck.

also konqueror is suppose to give some sort of ripping and encoding support but i haven't been able to get it to work. i typed audiocd:/ at location and konqueror just opens up a google search????
http://www.tinyminds.org/modules.php...rder=0&thold=0

thanks for any help'
AD

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0



[joe@schrock321 joe]$ su
Password:
[root@schrock321 joe]# cdrecord --scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jrg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'LITEON ' 'DVD-ROM LTD163D ' 'GHR5' Removable CD-ROM
0,1,0 1) 'LITE-ON ' 'LTR-48125W ' 'VS08' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
[root@schrock321 joe]#
 
Old 04-06-2003, 12:13 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Do you try to run it from the commandline or through a menu?
What is the error message when you try to run it (i.e. will it start but refuse to rip anything, not start at all, &c)?

~Laura
 
Old 04-06-2003, 02:25 PM   #3
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
there is no error message it just acts like its ripping. the actual cd rom never spins up or anything. i get empty files. but if i run the program as root then it works.

reading around i found it has something to do with permissions on the drive (/etc/fstab).

same thing with the command line if i use cdparanoia i need to run it as root.

thanks,
AD
 
Old 04-06-2003, 02:30 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
can you post the output of "ls -la /dev/" for me? Just the first 6 or 7 lines should have the information we need (you'll see it - whereever it stops saying "cdrom" is p'bly the cutoff of useful information in our case).
The contents of /etc/fstab/ might help, too.
 
Old 04-06-2003, 02:57 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Actually I think the problem is permissions on the applications more than on the devices (maybe). Check permissions on cdparanoia and lame:
whereis cdparanoia (take that and..)
ls -l /path/to/cdparanoia
whereis lame (take that)
ls -l /path/to/lame

Also, to keep from seeing 100+ entries from dev, you can see just the ones you want:
ls -l /dev/cd* /dev/sr* /dev/scd*



Cool
 
Old 04-06-2003, 03:29 PM   #6
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
[joe@schrock321 joe]$ ls -l /usr/bin/cdparanoia
-rwxr-xr-x 1 joe joe 34615 Jun 23 2002 /usr/bin/cdparanoia
[joe@schrock321 joe]$ ls -l /usr/bin/grip
-rwxr-xr-x 1 root root 203590 Feb 14 00:23 /usr/bin/grip
[joe@schrock321 joe]$ ls -la /dev/cdrom
lrwxrwxrwx 1 root root 9 Mar 15 13:09 /dev/cdrom -> /dev/scd0
[joe@schrock321 joe]$ ls -la /dev/cdrom1
lrwxrwxrwx 1 root root 9 Mar 15 13:09 /dev/cdrom1 -> /dev/scd1
[joe@schrock321 joe]$


so should i
chmod 777 all of these
owner-read write execute
group- read write execute
other read write execute

thanks rose
thanks as always acid

AD
 
Old 04-06-2003, 04:07 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
What are your permissions on /dev/scd0 and /dev/scd1?

ls -l /dev/scd1
ls -l /dev/sdc0

And no, you should never ever ever (with very few exceptions) use chmod 777.

Cool
 
Old 04-06-2003, 04:19 PM   #8
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
[joe@schrock321 joe]$ ls -l /dev/scd*
brw------- 1 joe disk 11, 0 Aug 30 2002 /dev/scd0
brw------- 1 joe disk 11, 1 Aug 30 2002 /dev/scd1
brw-rw---- 1 root disk 11, 2 Aug 30 2002 /dev/scd2
brw-rw---- 1 root disk 11, 3 Aug 30 2002 /dev/scd3
brw-rw---- 1 root disk 11, 4 Aug 30 2002 /dev/scd4
brw-rw---- 1 root disk 11, 5 Aug 30 2002 /dev/scd5
brw-rw---- 1 root disk 11, 6 Aug 30 2002 /dev/scd6
brw-rw---- 1 root disk 11, 7 Aug 30 2002 /dev/scd7
[joe@schrock321 joe]$

i will remember that no chmod 777

thanks,
AD
 
Old 04-06-2003, 04:20 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Quote:
Originally posted by illtbagu
[joe@schrock321 joe]$ ls -l /usr/bin/cdparanoia
-rwxr-xr-x 1 joe joe 34615 Jun 23 2002 /usr/bin/cdparanoia
Why does user/group "joe" own this? You might wanna own this back to root (as root type):
chown root:root /usr/bin/cdparanoia

Although not a huge security hole, one that can be easily fixed (you don't need to have it owned to your user to use it).

Cool
 
Old 04-06-2003, 07:51 PM   #10
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
ok fixed it its back to root again for user/group permissions for cdparanoia. any more ideas on how to get my system to rip cd's with user privileges. not really a big deal i guess but just allot of hassle. you would think it would be obvious on how to do this.

thanks,
AD
 
Old 04-06-2003, 08:04 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
We'll get this going using grip, do not worry about trying other things

So, let's make sure you have mp3 support (since it appears you are running RH 8):
http://staff.xmms.org/priv/redhat8/

And make sure you have lame installed:
whereis lame

If not, get it here:
http://sourceforge.net/project/showf...p?group_id=290

And finally, let's make sure you're permissions are good on your devices:
ls -l /dev/scd0
ls -l /dev/scd1

Then, we will check your grip config:

Fire up grip, click on the config tab and make sure the /dev/cdrom is the device listed. Then click the "rip" tab within config, and make sure cdparanoia is pulled down in the list.

Click on the encode tab, make sure lame is an option, and that it's selected in the drop down.

Now, after we see the permissions on those devices, we will try it (assuming they are set correctly) and see how that goes. If it doesn't work out (after we set the correct permissions) we will give some other things a run

Cool
 
Old 04-06-2003, 08:49 PM   #12
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
got mp3 support im playing a mp3 file right now. like i said it works when running grip as root. you know at the command line type su enter password then grip. no problems but like i said if im not running this program as root it just acts like its ripping but gives me empty files in about .000025 seconds its done ripping and encoding.

same thing if i was to do all of this from the command line. grip is just a front end for cdparanoia and lame and other rippers and encoders right. if i rip a cd with cdparanoia at the command line i must be root also.


[joe@schrock321 joe]$ ls -l /dev/scd0
brw-rw---- 1 joe disk 11, 0 Aug 30 2002 /dev/scd0
[joe@schrock321 joe]$ ls -l /dev/scd1
brw-rw---- 1 joe disk 11, 1 Aug 30 2002 /dev/scd1
[joe@schrock321 joe]$


did and checked everything you said too MasterC

thanks MasterC,
AD
 
Old 04-06-2003, 09:03 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Why does joe own the devices? Again, let's switch that to root:
as root:
chown root /dev/scd0 /dev/scd1

Ok, now:
chmod 555 /dev/scd0 /dev/scd1

And try using cdparanoia (or grip) again. Post back to let me know how it goes.

Cool
 
Old 04-06-2003, 09:22 PM   #14
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
[root@schrock321 joe]# chown root /dev/scd0 /dev/scd1
[root@schrock321 joe]#
[root@schrock321 joe]# chmod 555 /dev/scd0 /dev/scd1
[root@schrock321 joe]#
[root@schrock321 joe]# ls -l /dev/scd0 /dev/scd1
br-xr-xr-x 1 root disk 11, 0 Aug 30 2002 /dev/scd0
br-xr-xr-x 1 root disk 11, 1 Aug 30 2002 /dev/scd1
[root@schrock321 joe]#

didn't know scd was suppose to be owned by root also. after changing owner and permissions same old thing. i guess its no big deal MasterC i need to be root to burn cd's so i guess i just need to be root to rip cd's also. its just kind of annoying thats all. i mean after i get done ripping and encoding a cd using grip i haft to go to /root/mp3 to get my files.

its no big deal MasterC if you or someone else doesn't know off the top of your head no biggie you have way more important problems around here to solve for people than this.

thanks as always,
AD
 
Old 04-06-2003, 10:14 PM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That just sucks. Fire up xcdroast (if you don't have it installed get it, and install it from www.freshmeat.net) and the first screen you should see (assuming you are just installing it) will be a screen that chmod's everything to the necessary attributes to execute certain apps to the necessary mods. Then, all you have to do is add your user to the group xcdwrite (or whatever you create) and then you should have the ability as your user to burn cd's.

I'm pretty sure I was in the same boat when I first got my system up (Slack 8.1) however it's been so long I can't remember exactly the steps I followed; however I'm sure it's detailed in the README/INSTALL file(s).

With that, it also might chmod/chown your ripping programs (such as cdparanoia) and fix that in the same click of the mouse.

HTH and makes sense

And as for more important things, I'm here to help anyone who needs it, that includes such things as setting up users to rip/burn CD's I would really like to get this setup so you can get the ball rolling...

**Last second thought**

In grip, where are the files being ripped to? If this directory isn't writeable by your user (or if you are using the command line cdparanoia, set the directory to one writeable by your user) then it's possible that's the problem.

Cool
 
  


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
AudioCD for Amarok schneemann Mandriva 1 11-30-2005 09:59 PM
How do i use Audiocd:\ in Konqueror carl0ski Linux - Software 3 02-23-2005 01:35 AM
Problem using audiocd:/ with KDE 3.2 PaleViper Linux - Software 5 06-11-2004 03:36 AM
How To Mount An Audiocd Filesystem? mrmojo Linux - Newbie 3 11-08-2003 05:56 PM
audiocd:/ in Konqueror AndyJ Linux - Newbie 4 02-27-2003 03:56 PM


All times are GMT -5. The time now is 09:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration