1 |
On Wed, Aug 26, 2015 at 07:28:41PM -0400, Alec Ten Harmsel wrote |
2 |
> On Wed, Aug 26, 2015 at 07:20:37PM -0400, Walter Dnes wrote: |
3 |
> > I've just switched from cdparanoia to cdda2wav, to get track |
4 |
> > names/artists. As a regular user, I ran... |
5 |
> > |
6 |
> > cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B |
7 |
> > |
8 |
> > I got a bunch of complaints about insufficient read and write |
9 |
> > privileges, but it seems to work OK. I ran the same command as root, |
10 |
> > and no error messages. |
11 |
> |
12 |
> What exactly are the error messages? Most likely you just need to be |
13 |
> added to the group that has access to CD drives or something like that. |
14 |
|
15 |
I am a member of groups "cdrom" and "cdrw". Here are the messages... |
16 |
|
17 |
[d531][waltdnes][~/music/glenn_miller_2a] cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B |
18 |
cdda2wav: Insufficient 'file read' privileges. You will not be able to open all needed devices. |
19 |
cdda2wav: Insufficient 'file write' privileges. You will not be able to open all needed devices. |
20 |
cdda2wav: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems. |
21 |
cdda2wav: Insufficient 'priocntl' privileges. You may get jitter. |
22 |
cdda2wav: Insufficient 'network' privileges. You will not be able to do remote SCSI. |
23 |
Type: ROM, Vendor 'TSSTcorp' Model 'CDRWDVD TS-H493B' Revision 'D200' MMC+CDDA |
24 |
569344 bytes buffer memory requested, transfer size 131072 bytes, 4 buffers, 55 sectors |
25 |
#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 |
26 |
AUDIOtrack pre-emphasis copy-permitted tracktype channels |
27 |
|
28 |
> Looks like it's the commas. Try: |
29 |
> |
30 |
> waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1\,0\,0 cddb=0 -paranoia -B |
31 |
|
32 |
It woiks! No warnings. Thank you very much. To avoid my |
33 |
"fumble-fingers", I have a short script "~/bin/cdrip"... |
34 |
|
35 |
#!/bin/bash |
36 |
sudo /usr/bin/cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B |
37 |
|
38 |
This episode prompted me to research further, to see what else has to |
39 |
be escaped. Google turns up... |
40 |
http://www.sudo.ws/man/1.8.13/sudoers.man.html#x4f74686572207370656369616c206368617261637465727320616e6420726573657276656420776f726473 |
41 |
|
42 |
> Long lines can be continued with a backslash (`\') as the last |
43 |
> character on the line. |
44 |
> White space between elements in a list as well as special syntactic |
45 |
> characters in a User Specification (`=', `:', `(', `)') is optional. |
46 |
> The following characters must be escaped with a backslash (`\') when |
47 |
> used as part of a word (e.g. a user name or host name): |
48 |
> `!', `=', `:', `,', `(', `)', `\'. |
49 |
|
50 |
... i.e. "!=:,()\" |
51 |
|
52 |
-- |
53 |
Walter Dnes <waltdnes@××××××××.org> |
54 |
I don't run "desktop environments"; I run useful applications |