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 4DE2913989D for ; Wed, 26 Aug 2015 23:20:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 998201425D; Wed, 26 Aug 2015 23:20:48 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 9086B14241 for ; Wed, 26 Aug 2015 23:20:47 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AbEwA731xV/6G1+M5cgxABgTGIJbs3CYFLhgAEgUA5FAEBAQEBAQGBCkEFhB0cXxMhBSUkE4gsmy+0IJNdgRYFknB3igiBKIZQGY0/gUUjgUeCTSIxgkcBAQE X-IPAS-Result: A0AbEwA731xV/6G1+M5cgxABgTGIJbs3CYFLhgAEgUA5FAEBAQEBAQGBCkEFhB0cXxMhBSUkE4gsmy+0IJNdgRYFknB3igiBKIZQGY0/gUUjgUeCTSIxgkcBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="161504834" Received: from 206-248-181-161.dsl.teksavvy.com (HELO waltdnes.org) ([206.248.181.161]) by ironport2-out.teksavvy.com with SMTP; 26 Aug 2015 19:20:47 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Wed, 26 Aug 2015 19:20:37 -0400 From: "Walter Dnes" Date: Wed, 26 Aug 2015 19:20:37 -0400 To: Gentoo Users List Subject: [gentoo-user] Mysterious sudoers.d error Message-ID: <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 User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: 16848b42-e11c-416b-b460-6d8aac12e3a5 X-Archives-Hash: c4304a26820d07864c212535b45225ef 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 I don't run "desktop environments"; I run useful applications