From owner-freebsd-questions@FreeBSD.ORG Sat Aug 30 01:19:24 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 C204C16A4BF for ; Sat, 30 Aug 2003 01:19:24 -0700 (PDT) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E00B543FCB for ; Sat, 30 Aug 2003 01:19:23 -0700 (PDT) (envelope-from desmond.lee@shaw.ca) Received: from pd6mr1so.prod.shaw.ca (pd6mr1so-qfe3.prod.shaw.ca [10.0.141.216]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKF00B29B4B6U@l-daemon> for freebsd-questions@freebsd.org; Sat, 30 Aug 2003 02:19:23 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca (pn2ml5so-qfe0.prod.shaw.ca [10.0.121.149]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKF00MCMB4BI4@l-daemon> for freebsd-questions@freebsd.org; Sat, 30 Aug 2003 02:19:23 -0600 (MDT) Received: from croydon (h24-83-94-81.vs.shawcable.net [24.83.94.81]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKF001CUB42KC@l-daemon> for freebsd-questions@freebsd.org; Sat, 30 Aug 2003 02:19:23 -0600 (MDT) Date: Sat, 30 Aug 2003 01:19:14 -0700 From: Desmond Lee To: freebsd-questions@freebsd.org Message-id: <001001c36ecf$68eddad0$6501a8c0@croydon> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Subject: 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 08:19:24 -0000 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. 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? 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. Any help is appreciated. Thanks Desmond