From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A1C0213989D for ; Wed, 26 Aug 2015 23:28:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EACC914281; Wed, 26 Aug 2015 23:28:44 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CAF3F14243 for ; Wed, 26 Aug 2015 23:28:43 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 13134228CA for ; Wed, 26 Aug 2015 19:28:43 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 26 Aug 2015 19:28:43 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=BMMJBws0ix0kCrQnV4DGTbquOjA=; b=d9glK R1tJS8IifsS4fELrpWVfoR9GoB0ycBP5dhzNsqjnlBNXC8sn+vavzh8ng/35l9Hq sEjaRNmrtu8DNbMs7IXmHWPIAFySusgryKP5ku5lfaBkhrFjLFe9ithGA1pMNJuo wcmsfA0/OfYD95aGPF3zFYW6UTGsYxxCvDP36I= X-Sasl-enc: Yq05Ka0HRNMAtA6/sVgmKofcfgfrZ/ibmV90uU3E2omf 1440631722 Received: from apio.adsroot.itcs.umich.edu (0587366376.wireless.umich.net [35.2.127.232]) by mail.messagingengine.com (Postfix) with ESMTPA id A8682680128; Wed, 26 Aug 2015 19:28:42 -0400 (EDT) Date: Wed, 26 Aug 2015 19:28:41 -0400 From: Alec Ten Harmsel To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Mysterious sudoers.d error Message-ID: <20150826232841.GB522@apio.adsroot.itcs.umich.edu> References: <20150826232037.GB23022@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150826232037.GB23022@waltdnes.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: 18758d9c-cd78-44e1-92c8-49fdac1cef46 X-Archives-Hash: ded0c75db47582f0fe0d24f0c3ccdcc0 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. > 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. Looks like it's the commas. Try: waltdnes d531 = (root) NOPASSWD: /usr/bin/cdda2wav -vall dev=1\,0\,0 cddb=0 -paranoia -B Alec