Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] Mysterious sudoers.d error
Date: Wed, 26 Aug 2015 23:20:56
Message-Id: 20150826232037.GB23022@waltdnes.org
1 I've just switched from cdparanoia to cdda2wav, to get track
2 names/artists. As a regular user, I ran...
3
4 cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B
5
6 I got a bunch of complaints about insufficient read and write
7 privileges, but it seems to work OK. I ran the same command as root,
8 and no error messages. So I figured I'd just stick the command into
9 /etc/sudoers.d and run with root privileges under tightly controlled
10 conditions. I ran visudo, and appended what would be the 34th line to
11 /etc/sudoers.d/001 Here were the tentative 32nd/33rd/34th lines...
12
13 waltdnes d531 = (root) NOPASSWD: /usr/bin/fusermount -u /home/waltdnes/tablet
14 waltdnes d531 = (root) NOPASSWD: /usr/bin/simple-mtpfs -o allow_other /home/waltdnes/tablet
15 waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B
16
17 When I attempted to exit visudo, I go a not-so-helpfull message...
18
19 "/etc/sudoers.d/001.tmp" 34L, 2078C written
20 >>> /etc/sudoers.d/001: syntax error near line 34 <<<
21 What now?
22
23 Like the message says, "What now?". It's currently a moot point
24 because cdda2wav seems to work OK, notwithstanding the "insufficient
25 permissions" messages. But if I'm doing something wrong with sudoers,
26 I'd like to find out what it is now, rather than later when I really
27 need it.
28
29 --
30 Walter Dnes <waltdnes@××××××××.org>
31 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] Mysterious sudoers.d error Alec Ten Harmsel <alec@××××××××××××××.com>