public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Mysterious sudoers.d error
Date: Wed, 26 Aug 2015 19:20:37 -0400	[thread overview]
Message-ID: <20150826232037.GB23022@waltdnes.org> (raw)

  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.  So I figured I'd just stick the command into
/etc/sudoers.d and run with root privileges under tightly controlled
conditions.  I ran visudo, and appended what would be the 34th line to
/etc/sudoers.d/001  Here were the tentative 32nd/33rd/34th lines...

waltdnes  d531 = (root) NOPASSWD: /usr/bin/fusermount -u /home/waltdnes/tablet
waltdnes  d531 = (root) NOPASSWD: /usr/bin/simple-mtpfs -o allow_other /home/waltdnes/tablet
waltdnes  d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1,0,0 cddb=0 -paranoia -B

  When I attempted to exit visudo, I go a not-so-helpfull message...

"/etc/sudoers.d/001.tmp" 34L, 2078C written
>>> /etc/sudoers.d/001: syntax error near line 34 <<<
What now?

  Like the message says, "What now?".  It's currently a moot point
because cdda2wav seems to work OK, notwithstanding the "insufficient
permissions" messages.  But if I'm doing something wrong with sudoers,
I'd like to find out what it is now, rather than later when I really
need it.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


             reply	other threads:[~2015-08-26 23:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 23:20 Walter Dnes [this message]
2015-08-26 23:28 ` [gentoo-user] Mysterious sudoers.d error Alec Ten Harmsel
2015-08-27  1:12   ` [gentoo-user] [SOLVED] " Walter Dnes
2015-08-27  9:22     ` Alan Mackenzie
2015-08-27 22:11       ` Walter Dnes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150826232037.GB23022@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox