From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 00:42:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C80B37B401 for ; Thu, 10 Apr 2003 00:42:49 -0700 (PDT) Received: from imo-r01.mx.aol.com (imo-r01.mx.aol.com [152.163.225.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B2E43FA3 for ; Thu, 10 Apr 2003 00:42:48 -0700 (PDT) (envelope-from edinho64@netscape.net) Received: from edinho64@netscape.net by imo-r01.mx.aol.com (mail_out_v34.21.) id 4.2e.83b634e (22681); Thu, 10 Apr 2003 03:42:43 -0400 (EDT) Received: from netscape.net (pool-68-160-106-19.nwrk.east.verizon.net [68.160.106.19]) by air-in04.mx.aol.com (v92.17) with ESMTP id MAILININ42-58993e9520723d8; Thu, 10 Apr 2003 03:42:43 -0400 Message-ID: <3E95206D.9020807@netscape.net> Date: Thu, 10 Apr 2003 03:42:37 -0400 From: "E. J. Cerejo" User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ms@probsd.org, freebsd-questions References: <1124.192.168.1.4.1049936589.squirrel@probsd.org> <3E94CF74.4030403@netscape.net> <1362.192.168.1.4.1049939943.squirrel@probsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Subject: Re: sudo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 07:42:49 -0000 ms@probsd.org wrote: > replace ecerejo.Belkin with: localhost > > then visudo > > what now? > > michael > > > >>ms@probsd.org wrote: >> >>>example - assuming your user name is noltie on a host named flowers >>> >>>ee /usr/local/etc/sudoers >>> >>>%noltie flowers:NOPASSWD: /usr/local/bin/cdrecord >>> >>>Then type: visudo >>> >>>To close and write the change, just do: Shift+:wq >>> >>>then as user noltie: sudo /usr/local/bin/cdrecord >> >>I get an error, this is the line I used: >> >>%kdedude ecerejo.Belkin:NOPASSWD: /usr/local/bin/cdrecord >> >>and I get this error when I try saving it with visudo: >> >>/usr/local/etc/sudoers.tmp: 28 lines, 637 characters. >> >>> sudoers file: syntax error, line 27 <<< >>What now? It doesn't give an error when saving if I put just this: %kdedude localhost = NOPASSWD: /usr/X11R6/bin/xcdroast but when I run it complains saying that kdedude is not in sudoers file, tried it without the "%" sign and it complained again. The only way it worked was when I put this in there: %wheel ALL=(ALL) NOPASSWD: ALL but I don't want to do that though, I just want to be able to run a few commands and not "ALL" commands.