I installed sudo via pkgsrc. To make use of it, though, I need
visudo, but I can't find it anywhere. There's a man page for visudo,
but it doesn't say where it is.
To find out the files that were installed when you installed the package, you can use the pkg_info command:
> pkg_info -L sudo
Information for sudo-1.9.15p5:
Files:
/usr/pkg/bin/cvtsudoers
/usr/pkg/bin/sudo
/usr/pkg/bin/sudoedit
/usr/pkg/bin/sudoreplay
/usr/pkg/include/sudo_plugin.h
/usr/pkg/lib/sudo/
audit_json.la/usr/pkg/lib/sudo/audit_json.so
/usr/pkg/lib/sudo/
group_file.la/usr/pkg/lib/sudo/group_file.so
/usr/pkg/lib/sudo/
libsudo_util.la/usr/pkg/lib/sudo/libsudo_util.so
/usr/pkg/lib/sudo/libsudo_util.so.0
/usr/pkg/lib/sudo/libsudo_util.so.0.0.0
/usr/pkg/lib/sudo/
sudo_noexec.la/usr/pkg/lib/sudo/sudo_noexec.so
/usr/pkg/lib/sudo/
sudoers.la/usr/pkg/lib/sudo/sudoers.so
/usr/pkg/lib/sudo/
system_group.la/usr/pkg/lib/sudo/system_group.so
/usr/pkg/man/man1/cvtsudoers.1
/usr/pkg/man/man5/sudo.conf.5
/usr/pkg/man/man5/sudo_logsrv.proto.5
/usr/pkg/man/man5/sudo_logsrvd.conf.5
/usr/pkg/man/man5/sudo_plugin.5
/usr/pkg/man/man5/sudoers.5
/usr/pkg/man/man5/sudoers_timestamp.5
/usr/pkg/man/man8/sudo.8
/usr/pkg/man/man8/sudo_logsrvd.8
/usr/pkg/man/man8/sudo_sendlog.8
/usr/pkg/man/man8/sudoedit.8
/usr/pkg/man/man8/sudoreplay.8
/usr/pkg/man/man8/visudo.8
/usr/pkg/sbin/sudo_logsrvd
/usr/pkg/sbin/sudo_sendlog
/usr/pkg/sbin/visudo
/usr/pkg/share/doc/sudo/CONTRIBUTING.md
/usr/pkg/share/doc/sudo/CONTRIBUTORS.md
/usr/pkg/share/doc/sudo/ChangeLog
/usr/pkg/share/doc/sudo/HISTORY.md
/usr/pkg/share/doc/sudo/LICENSE.md
/usr/pkg/share/doc/sudo/NEWS
/usr/pkg/share/doc/sudo/README.md
/usr/pkg/share/doc/sudo/SECURITY.md
/usr/pkg/share/doc/sudo/TROUBLESHOOTING.md
/usr/pkg/share/doc/sudo/UPGRADE.md
/usr/pkg/share/examples/sudo/cvtsudoers.conf
/usr/pkg/share/examples/sudo/pam.conf
/usr/pkg/share/examples/sudo/sudo.conf
/usr/pkg/share/examples/sudo/sudo_logsrvd.conf
/usr/pkg/share/examples/sudo/sudoers
/usr/pkg/share/examples/sudo/syslog.conf
Best,
Alistair