From owner-freebsd-sparc64@FreeBSD.ORG Mon Apr 7 15:15:50 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC4B71065671 for ; Mon, 7 Apr 2008 15:15:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD1D8FC14 for ; Mon, 7 Apr 2008 15:15:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id D20371A4D83; Mon, 7 Apr 2008 07:58:30 -0700 (PDT) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 7 Apr 2008 10:31:49 -0400 User-Agent: KMail/1.9.7 References: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com> In-Reply-To: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804071031.49628.jhb@freebsd.org> Cc: Aijaz Baig Subject: Re: sudeors file not affecting user privileges X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 15:15:50 -0000 On Monday 07 April 2008 09:54:24 am Aijaz Baig wrote: > Hello, > > I would like 'normal users' to be able to issue the shutdown command. For > that reason I modified the 'sudoers' file and I uncommented the last line > which now reads:* * > *%users localhost=/sbin/shutdown -h now* > > However that didn't work. Then I thought > maybe the users above refer to some user defined group called 'users. So I > first created a group called 'users' and added 'masud' (one of my users) to > that group. Still No luck.. > > Then I read a bit about how does one actually add stuff to that file and > added(appended) the following to the file:* masud ALL=/sbin/shutdown -h > now* > > Well..nothing yet..I always log in as as 'masud' and try to see if shutdown > works (by issuing *shutdown -h now* from his account) and I get > */sbin/shutdown: > Permission denied > * > Well..How do I go about it... > > Please do let me know. > > Hope to hear from you soon, You need to use 'sudo /sbin/shutdown -h now'. Sudoers is used by sudo and you have to use sudo to invoke the command for sudeors to have an effect. -- John Baldwin