1 |
On Wed, Aug 26, 2015 at 07:20:37PM -0400, Walter Dnes wrote: |
2 |
> I've just switched from cdparanoia to cdda2wav, to get track |
3 |
> names/artists. As a regular user, I ran... |
4 |
> |
5 |
> cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B |
6 |
> |
7 |
> I got a bunch of complaints about insufficient read and write |
8 |
> privileges, but it seems to work OK. I ran the same command as root, |
9 |
> and no error messages. |
10 |
|
11 |
What exactly are the error messages? Most likely you just need to be |
12 |
added to the group that has access to CD drives or something like that. |
13 |
|
14 |
> So I figured I'd just stick the command into |
15 |
> /etc/sudoers.d and run with root privileges under tightly controlled |
16 |
> conditions. I ran visudo, and appended what would be the 34th line to |
17 |
> /etc/sudoers.d/001 Here were the tentative 32nd/33rd/34th lines... |
18 |
> |
19 |
> waltdnes d531 = (root) NOPASSWD: /usr/bin/fusermount -u /home/waltdnes/tablet |
20 |
> waltdnes d531 = (root) NOPASSWD: /usr/bin/simple-mtpfs -o allow_other /home/waltdnes/tablet |
21 |
> waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B |
22 |
> |
23 |
> When I attempted to exit visudo, I go a not-so-helpfull message... |
24 |
> |
25 |
> "/etc/sudoers.d/001.tmp" 34L, 2078C written |
26 |
> >>> /etc/sudoers.d/001: syntax error near line 34 <<< |
27 |
> What now? |
28 |
> |
29 |
> Like the message says, "What now?". It's currently a moot point |
30 |
> because cdda2wav seems to work OK, notwithstanding the "insufficient |
31 |
> permissions" messages. But if I'm doing something wrong with sudoers, |
32 |
> I'd like to find out what it is now, rather than later when I really |
33 |
> need it. |
34 |
|
35 |
Looks like it's the commas. Try: |
36 |
|
37 |
waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1\,0\,0 cddb=0 -paranoia -B |
38 |
|
39 |
Alec |