1

I installed sudo on NetBSD 7.0 using pkg. I copied /usr/pkg/etc/sudoers to /etc/sudoers because the docs say /etc/sudoers and possibly /etc/sudoers.local is used. I uncommented the line wheel ALL=(ALL) ALL. I then added myself to the wheel group. I verified I am in wheel with groups. I then logged off and then back on.

When I attempt to run sudo <command>, I get the standard:

jwalton is not in the sudoers file. This incident will be reported

What is wrong with my sudo installation, and how can I fix it?

jww
  • 12,722

1 Answers1

3

sudo(8) as installed by pkgsrc is configured to look in /usr/pkg/etc/sudoers. It will not look at /etc/sudoers.

If you're updating your access control via visudo(8), it should be modifying the correct file. If you're not updating the sudoers file via visudo(8), please start doing so.