On Wed, Nov 18, 2026 at 10:45:01AM GMT, Kevin Chadwick wrote:
>
> >> sudo
> >> /usr/bin/sudo[1]: syntax error: NUL byte unexpected
> > sudo(8) has last been in base in OpenBSD 5.7 so, what you have
> > there, is something you've installed yourself.
>
> Or not removed ever since then. sysclean would be your friend in that case.
This *did* cross my mind, but I'm sure the OP reads the Upgrade Guide:
Note: Upgrades are only supported from one release to the
release immediately following it. Do not skip releases. If
you got lucky skipping releases in the past, you may not
be lucky this time.
And one of the steps in "5.7 to 5.8" clearly states:
Before upgrading: things to think about and be aware of
[...]
- sudo replaced with doas
and further down:
2. Files to delete and move
Some files should be deleted from your system.
rm -f /usr/bin/sudo /usr/bin/sudoedit /usr/sbin/visudo
rm -f /usr/share/man/man8/sudo.8 /usr/share/man/man8/sudoedit.8
rm -f /usr/share/man/man8/visudo.8 /usr/share/man/man5/sudoers.5
rm -f /usr/libexec/sudo_noexec.so
Also, it would be quite a feat for all the 5.7 to 8.0 upgrades to
got without a hitch if the OP did *not* read the Upgrade Guide.
I'm sure the OP wouldn't waste anybody's time, and simply forgot
he installed it there himself...
Regards,
Raf