From owner-freebsd-sparc64@FreeBSD.ORG Mon Apr 7 21:13:32 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 A5D44106566B for ; Mon, 7 Apr 2008 21:13:32 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.176]) by mx1.freebsd.org (Postfix) with ESMTP id 18ECF8FC17 for ; Mon, 7 Apr 2008 21:13:31 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: by ik-out-1112.google.com with SMTP id b35so817476ika.3 for ; Mon, 07 Apr 2008 14:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=iUoYslf4sBGXtYXHFTlioso200r5Z7z4g9cceYC+F3o=; b=usp3ElWRnkNLKD4P3E8Mv66YADSuP5PZghrOg2k6b4Sv5QU8C8I0iOuU23eZqnsnjm8amW5Kh9MFFaRqgaiY8EWIZ6bzt+++ecutkZDRUgACeugVOWByL2E+dYm1S38pQa+yE/VXWtUHteujofm4B9C5G+6E9/tzKXG0wN6dvts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=MdnUvmv6CAZOrzMn+MLjoClSV/ssILdjPKMoqVoaSp8BIj8RBD2CrocCBaFukTvUgERGxSfRkwJ4hODrrYeWrMsOt4GFnCQJBYFCIw3Zvp0m166GvsUUn2uHZmK+yzn8So2/u3EyXTFcOcyjHTZDubuzeX4yL+40LowEJ7hDKwY= Received: by 10.142.109.16 with SMTP id h16mr2812803wfc.190.1207602809607; Mon, 07 Apr 2008 14:13:29 -0700 (PDT) Received: by 10.142.44.3 with HTTP; Mon, 7 Apr 2008 14:13:29 -0700 (PDT) Message-ID: <101a1afc0804071413r5c780432tcbf5f0e70fb4118@mail.gmail.com> Date: Mon, 7 Apr 2008 23:13:29 +0200 From: "Aijaz Baig" To: "John Baldwin" , tnelson@fudnet.net In-Reply-To: <200804071031.49628.jhb@freebsd.org> MIME-Version: 1.0 References: <101a1afc0804070654g7f4d09b6re3a8a6e928b0974b@mail.gmail.com> <200804071031.49628.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 21:13:32 -0000 Hello, Well..thanks for the advice. However even after using a sudo to issue the command from the users account, I get the same error message as before which reads: *sudo: /usr/local/etc/sudoers is mode 0644, should be 0440 *Well..what exactly is mode 0644 and how can I make sure that my users who have been permitted to excute this command are in mode 0440? What exactly are these modes and what do they mean? Will something like *chmod 0440 sudoers* work to solve this issue? I am a bit wary of experimenting with this so Id rather ask before doing it? Hope to hear from you guys Best Regards, Aijaz Baig On Mon, Apr 7, 2008 at 4:31 PM, John Baldwin wrote: > 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 >