From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 09:59:55 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 3F49716A4C0 for ; Sat, 30 Aug 2003 09:59:55 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0FDFD43FEA for ; Sat, 30 Aug 2003 09:59:54 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 8934 invoked by uid 1000); 30 Aug 2003 16:59:53 -0000 Date: Sat, 30 Aug 2003 09:59:53 -0700 From: Joshua Oreman To: Desmond Lee Message-ID: <20030830165953.GA7424@webserver> References: <001001c36ecf$68eddad0$6501a8c0@croydon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001001c36ecf$68eddad0$6501a8c0@croydon> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: sudoer file 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: Sat, 30 Aug 2003 16:59:55 -0000 On Sat, Aug 30, 2003 at 01:19:14AM -0700 or thereabouts, Desmond Lee wrote: > Hello > > I'm having problems setting up sudo. I want to let a user 'dlee' be able > to mount and umount the cdrom. All I add in the /user/local/etc/sudoers > file is the following: > > > dlee localhost = NOPASSWD: mount /cdrom, umount /cdrom > > But when I do a 'sudo -v' (logged in as dlee) it says that dlee can run > sudo under the machine. Does `hostname' report "localhost"? If not, change the "localhost" to whatever `hostname' reports. > > Right now the wheel group consists of root and dlee. If I uncomment and > put in the following line: > > %wheel ALL=(ALL) ALL > > then the user dlee still cannot do any sudo commands even though the > user dlee can su as root? AFAIK, more specific sudo lines (dlee) override less specific (%wheel). > > Is there something that I'm doing wrong here? I've looked up the sudo > and sudoers man pages and did some searching online but can't really get > anywhere. Check your hostname. Or just use ALL. -- Josh > > Any help is appreciated. > > Thanks > > Desmond > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"