From owner-freebsd-questions@FreeBSD.ORG Tue Dec 6 11:22:48 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 037AD106564A for ; Tue, 6 Dec 2011 11:22:48 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id D989C8FC16 for ; Tue, 6 Dec 2011 11:22:47 +0000 (UTC) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id 401FB50838 for ; Tue, 6 Dec 2011 03:22:47 -0800 (PST) To: freebsd-questions@freebsd.org Date: Tue, 06 Dec 2011 03:22:47 -0800 Message-ID: <66927.1323170567@tristatelogic.com> From: "Ronald F. Guilmette" Subject: drivin' me nuts: permissions and cdda2wav X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 11:22:48 -0000 With a pre-recorded CD in the drive, the following works fine for me when I'm root: cdda2wav -D 0,0,0 -B My question is: What do I need to do in order to make this work also when executed from a non-root account? Here's what I get when I try to do the above from a non-root account: cdda2wav: Permission denied. Cannot open or use SCSI driver. cdda2wav: For possible targets try 'cdda2wav -scanbus'. Make sure you are root. Probably you did not define your SCSI device. Set the CDDA_DEVICE environment variable or use the -D option. You can also define the default device in the Makefile. For possible transport specifiers try 'cdda2wav dev=help'. Effing hell! I've tried just about everything I can think of off the top of my head to beat this and nothing works. I've tried chmod 0660 /dev/pass* (and yes, the account I'm trying these experiments from _is_ a member of the `operator' group), but that didn't help a bit. And before anybody asks, let me say that yes, I _do_ have: atapicam_load="YES" in my /boot/loader.conf file. So how exactly does one adjust the permissions on one of these atamicam pseudo-SCSI devices. Where are they underneath /dev ? Please excuse my ignorance, but I just don't know. <> All I really wanted to do is to rip an "E"CD (enhanced CD) that I own, using abcde. I found out that cdparanoia chokes on the ECD, so I'm trying to figure out how to make abcde work with cdda2wav, but it apparently isn't at all easy. (Any hints or advice welcomed.) Oh! And by the way, this causes a segfault and a core dump: cdda2wav -D /dev/acd0 -B I'll have to send in a PR on that, I guess, but it is rather stunning to me that nobody even tested for that. Regards, rfg