vidoas
—
edit a doas configuration file
The vidoas
utility opens an editor on a temporary copy
of a
doas(1)
configuration file and checks it for syntax errors before installing it as the
actual configuration file.
The options are as follows:
-h
- Show a usage message.
-n
- Do not edit the file, just perform prerequisite checks. If this switch is
repeated, all output will be suppressed and the check result is only
indicated by the exit status.
The vidoas
utility exits 0 on success,
and >0 if an error occurs.
EDITOR
- The editor command used for editing the configuration file. If the
EDITOR
environment variable is null or not set,
the vi(1)
editor program will be used.
- /usr/local/etc/doas.conf
- The default configuration file to edit, when no file
argument is specified.