From owner-freebsd-sparc64@FreeBSD.ORG Sat Apr 5 14:31:52 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 08968106566C for ; Sat, 5 Apr 2008 14:31:52 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id B43B38FC1A for ; Sat, 5 Apr 2008 14:31:51 +0000 (UTC) (envelope-from aijaz.abaig@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so550723wfa.7 for ; Sat, 05 Apr 2008 07:31:51 -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:in-reply-to:mime-version:content-type:references; bh=NdTSfmrM7R0NWDyIMN/TpT/TWeO7K6QVOD99VaSgbtA=; b=CV7kFUp9laXZOKbt1p51Pr0fjmflI76yDuWPL1Hv61g5ZcMbEFeUEzN5Ok7muqW5ZWA5gAeouvHby4Hnj5i3pmPSalNxvOOOJeH/PXW54dC4PdnIGCjg+R4X48UDaHHRhqf/rTWwyXA7ulSWAVuVGGsVlpCr1pvt2Gx5I3uLMxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LEKeyfWd7gK7eyOL5j8ac5BkH4HkoQPfynESRAVNz/vL/7xUdbNWrwFLxyyqmc//IfsCQgTiQmebj0/WjaIvJIpXpvM2G06jmwTkcBgN8gtZfQfUncKLjcsYzlD580b8ih2QEX9l8XtpfPyQDH0mO5F8S2FZh85eICB8apwvaL4= Received: by 10.142.58.9 with SMTP id g9mr1667710wfa.44.1207405911113; Sat, 05 Apr 2008 07:31:51 -0700 (PDT) Received: by 10.142.44.3 with HTTP; Sat, 5 Apr 2008 07:31:51 -0700 (PDT) Message-ID: <101a1afc0804050731kf60b321sba109e89f3aade7c@mail.gmail.com> Date: Sat, 5 Apr 2008 16:31:51 +0200 From: "Aijaz Baig" To: freebsd-sparc64@freebsd.org In-Reply-To: <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com> MIME-Version: 1.0 References: <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: cannot edit the sudoers file 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: Sat, 05 Apr 2008 14:31:52 -0000 Hello In relation to my previous question about not being able to edit the 'sudoers' file, I was finally able to edit the file. Since I still couldn't find any concrete information about visudo and how to get it, I used emacs to edit that file instead. I uncommented the last line which should allow all the users to issue the 'shutdown -h now' command. Still users aren't able to issue that command. I even tried doing that on an individual basis as in *user **ALL=/sbin/shutdown -h now** *Still the *user *isn't able to use shutdown. Any suggestions are welcome. Best Regards, Aijaz Baig. ---------- Forwarded message ---------- From: Aijaz Baig Date: Sat, Apr 5, 2008 at 10:35 AM Subject: cannot edit the sudoers file To: freebsd-sparc64@freebsd.org Hello, I am not able to edit the sudoers file even though I do have sudo installed on the box. Theres been some confusion in my mind regarding what actually happened when I tried to install sudo. I did a *make install visudo* in the /usr/ports/securoty/sudo and I could see a lot of information in the terminal and finally it gave the following two messages: " ===> Compressing manual pages for sudo-1.6.9.14 ===> Registering installation for sudo-1.6.9.14 ===> SECURITY REPORT: This port has installed the following binaries which execute with increased privileges. /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ make: don't know how to make visudo. Stop " Now what is happening is that I can issue the sudo and the sudoedit commands from the terminal as they are in my path. However I still do not understand where to fetch the visudo wrapper from? Is it some kind of a scrip which is to be run from the terminal or what? AdditionallY I did all this as I wanted to have all my users access to the 'shutdown' command and for that i needed to edit the */usr/local/etc/sudoers *file and even though I use the following command "sudo emacs /usr/local/etc/sudoers" I am still not able to edit the file. I also tried using *sudo chown root: /usr/local/etc/sudoers *but to no avail. Could someone please help me. Hope to hear from you soon, Best Regards, Aijaz.