Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Apr 2008 17:56:38 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-sparc64@freebsd.org
Subject:   Re: cannot edit the sudoers file
Message-ID:  <20080405175638.2a68c6ea.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com>
References:  <101a1afc0804050135q430dd860rc00553e913054e3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 05 Apr 2008 10:35:50 +0200
Aijaz Baig <aijaz.abaig@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080405175638.2a68c6ea.torfinn.ingolfsen>