From owner-freebsd-sparc64@FreeBSD.ORG Mon Apr 7 14:52:33 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 536B8106566C for ; Mon, 7 Apr 2008 14:52:33 +0000 (UTC) (envelope-from tnelson@fudnet.net) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id 3CAEE8FC15 for ; Mon, 7 Apr 2008 14:52:33 +0000 (UTC) (envelope-from tnelson@fudnet.net) Received: from jankymail-a2.g.dreamhost.com (sd-green-bigip-177.dreamhost.com [208.97.132.177]) by hapkido.dreamhost.com (Postfix) with ESMTP id 4B03C17A519 for ; Mon, 7 Apr 2008 07:25:50 -0700 (PDT) Received: from [192.168.0.49] (unknown [71.216.139.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jankymail-a2.g.dreamhost.com (Postfix) with ESMTP id 6E12EB6AB2; Mon, 7 Apr 2008 07:25:47 -0700 (PDT) Message-ID: <47FA2EEE.9050807@fudnet.net> Date: Mon, 07 Apr 2008 09:25:50 -0500 From: Tim Nelson User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Aijaz Baig References: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com> In-Reply-To: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-sparc64@freebsd.org 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 14:52:33 -0000 The command you're using does not appear to have "sudo" in front of it... 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, > > Best Regards, > Aijaz Baig. > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org" >