cannot edit the sudoers file

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Sat Apr 5 16:56:47 UTC 2008


On Sat, 05 Apr 2008 10:35:50 +0200
Aijaz Baig <aijaz.abaig at 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 at 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 at 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



More information about the freebsd-sparc64 mailing list