On Wed, Aug 26, 2015 at 07:28:41PM -0400, Alec Ten Harmsel wrote > On Wed, Aug 26, 2015 at 07:20:37PM -0400, Walter Dnes wrote: > > I've just switched from cdparanoia to cdda2wav, to get track > > names/artists. As a regular user, I ran... > > > > cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B > > > > I got a bunch of complaints about insufficient read and write > > privileges, but it seems to work OK. I ran the same command as root, > > and no error messages. > > What exactly are the error messages? Most likely you just need to be > added to the group that has access to CD drives or something like that.
I am a member of groups "cdrom" and "cdrw". Here are the messages... [d531][waltdnes][~/music/glenn_miller_2a] cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B cdda2wav: Insufficient 'file read' privileges. You will not be able to open all needed devices. cdda2wav: Insufficient 'file write' privileges. You will not be able to open all needed devices. cdda2wav: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems. cdda2wav: Insufficient 'priocntl' privileges. You may get jitter. cdda2wav: Insufficient 'network' privileges. You will not be able to do remote SCSI. Type: ROM, Vendor 'TSSTcorp' Model 'CDRWDVD TS-H493B' Revision 'D200' MMC+CDDA 569344 bytes buffer memory requested, transfer size 131072 bytes, 4 buffers, 55 sectors #Cdda2wav version 3.01a16_linux_4.0.5-gentoo_x86_64_intel-r--core-tm-2-duo-cpu-e4600-@-2.40ghz, real time sched., soundcard, libparanoia support AUDIOtrack pre-emphasis copy-permitted tracktype channels > Looks like it's the commas. Try: > > waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1\,0\,0 > cddb=0 -paranoia -B It woiks! No warnings. Thank you very much. To avoid my "fumble-fingers", I have a short script "~/bin/cdrip"... #!/bin/bash sudo /usr/bin/cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B This episode prompted me to research further, to see what else has to be escaped. Google turns up... http://www.sudo.ws/man/1.8.13/sudoers.man.html#x4f74686572207370656369616c206368617261637465727320616e6420726573657276656420776f726473 > Long lines can be continued with a backslash (`\') as the last > character on the line. > White space between elements in a list as well as special syntactic > characters in a User Specification (`=', `:', `(', `)') is optional. > The following characters must be escaped with a backslash (`\') when > used as part of a word (e.g. a user name or host name): > `!', `=', `:', `,', `(', `)', `\'. ... i.e. "!=:,()\" -- Walter Dnes <waltd...@waltdnes.org> I don't run "desktop environments"; I run useful applications