LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-12-2013, 02:58 AM   #1
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Slackware 14.1: cdda2wav permission issues...


I am trying to rip an audio cd with cdda2wav on a new 64bit iinstallation of 14.1 with the following commandline:

Code:
cdda2wav -vall cddb=0 -paranoia -B
cdda2wav finds the correct address for the drive, does a cddb query correctly, allows me to select an entry but then stalls with:

Code:
scanning for ISRCs: 6 ...
index scan: 6...
cdda2wav: Permission denied. Could not open audio sample file audio_01.wav.
Can anyone reproduce this problem or even better propose a solution?
 
Old 11-12-2013, 03:42 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,367

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I assume that the current working directory is writable? Seems odd that it's complaining about the output file.

cdda2wav works here as non-root as long as I add -D /dev/sr0 (but that will force use of the "cooked_ioctl" interface). I get a whole heap of "permission denied" without it when running non-root. if you want it to use the "generic_scsi" interface (which is the one recommended in the man-page) then you'll need to make sure the sg module is loaded and run cdda2wav as root.


This looks like a job for a /usr/local/bin/rip_cd script and a corresponding sudoers entry.

Last edited by GazL; 11-12-2013 at 04:36 AM. Reason: fleshed out a bit more.
 
1 members found this post helpful.
Old 11-13-2013, 03:02 PM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Original Poster
Rep: Reputation: 90
Using /dev/sr0 certainly worked, thanks for pointing that out. I use modprobe sg in rc.local and the error I mentioned occurs with the scsi address as a root user; there is no problem with permissions at the destination.

I see a discussion of this issue in German:

http://de.comp.hardware.laufwerke.br...wav-3-01a15-16

and my schoolboy German seems to indicate that the last post in this exchange is from Jörg Schilling himself with the promise of a fix in a new release cdrtools-3.01a18. But I cannot understand the whole thread which at least starts discussing the same error that I have found, are there any German speakers reading this thread? Changelog for the new release reports:

Quote:
Fixed fine grained privilege handling for Linux. Thanks for Daniel Pielmeier from Gentoo for reporting and testing.
On the weekend I will compile the newest release and see if this definitively solves the issue...
 
Old 11-13-2013, 05:52 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,367

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The generic_scsi was working for me, but that might be because I was running a custom 3.11.y kernel. google translate doesn't do too bad a job at that thread if you want to give it a go:

http://translate.google.com/translat...a15-16&act=url
 
Old 11-13-2013, 06:44 PM   #5
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Original Poster
Rep: Reputation: 90
Thanks for the translation link . Actually took a bit of time before work and compiled the newer version which made no difference unfortunately. I will think a little more + I have with some trepidation consulted the cdrtools mailing list...
 
Old 11-27-2013, 06:58 AM   #6
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Original Poster
Rep: Reputation: 90
The latest version of cdda2wav / cdrtools has resolved all issues here:

Code:
andrew@skamandros~$ cdda2wav --version | head -n 1
cdda2wav 3.01a19 (x86_64-unknown-linux-gnu) Copyright (C) 1993-2004 Heiko Eissfeldt (C) 2004-2013 Joerg Schilling
Still a little surprised that nobody else has experienced this issue...
 
  


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
problem with cdda2wav in slackware 12.0 wapembe Slackware 2 10-02-2007 12:13 AM
Cdparanoia vs Cdda2wav Zaskar Linux - Software 1 08-23-2007 04:54 PM
1 of the 2 slackware on system is for testing...kernel compilation/permission issues b0nd Linux - Newbie 1 01-21-2006 01:20 PM
cdda2wav problem bleedingturnips Linux - Software 0 06-21-2004 11:17 AM
Help with Eroaster and cdda2wav PiMoGo Linux - Software 2 10-29-2002 10:32 AM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration