From owner-freebsd-sparc64@FreeBSD.ORG Sat Apr 5 16:56:47 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 2F1D11065672 for ; Sat, 5 Apr 2008 16:56:47 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 882CA8FC1D for ; Sat, 5 Apr 2008 16:56:46 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0JYV00FDE0AFAK60@osl1smout1.broadpark.no> for freebsd-sparc64@freebsd.org; Sat, 05 Apr 2008 17:56:39 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.173.59]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with SMTP id <0JYV00A6O0AEI2G6@osl1sminn1.broadpark.no> for freebsd-sparc64@freebsd.org; Sat, 05 Apr 2008 17:56:39 +0200 (CEST) Date: Sat, 05 Apr 2008 17:56:38 +0200 From: Torfinn Ingolfsen To: freebsd-sparc64@freebsd.org Message-id: <20080405175638.2a68c6ea.torfinn.ingolfsen@broadpark.no> In-reply-to: <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com> References: <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd6.3) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: 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 16:56:47 -0000 On Sat, 05 Apr 2008 10:35:50 +0200 Aijaz Baig wrote: > 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 'make install' is correct; I don't know if anything bad happens if you add 'visudo' to the end of that line. However, you can always do 'make deinstall' followed by 'make reinstall' if you want to make sure that your port is installed correctly. To see which files are installed by the sudo port, do 'pkg_info -L sudo-1.6.9.14' (or whatever version of the port you have installed). One one of my boxes it gives this: root@kg-vm# pkg_info -L sudo-1.6.9.14 Information for sudo-1.6.9.14: Files: /usr/local/man/man5/sudoers.5.gz /usr/local/man/man8/sudo.8.gz /usr/local/man/man8/visudo.8.gz /usr/local/man/man8/sudoedit.8.gz /usr/local/bin/sudo /usr/local/bin/sudoedit /usr/local/etc/pam.d/sudo.default /usr/local/etc/sudoers.default /usr/local/libexec/sudo_noexec.la /usr/local/libexec/sudo_noexec.so /usr/local/sbin/visudo /usr/local/share/doc/sudo/BUGS /usr/local/share/doc/sudo/CHANGES /usr/local/share/doc/sudo/README /usr/local/share/doc/sudo/TROUBLESHOOTING /usr/local/share/doc/sudo/UPGRADE /usr/local/share/doc/sudo/sample.sudoers root@kg-vm# As you can see, the port installs the visudo binary also. > 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 It is installed by the port. HTH -- Regards, Torfinn Ingolfsen