DOASEDIT(1)

NAME
doasedit - edit a text file and then write the file back to its original location with admin access

SYNOPSIS
doasedit [file]

DESCRIPTION
The doasedit utility opens an editor on a temporary copy of a text file. Once the file has been altered, it is written back to the original location, using doas for elevated access. This is intended for use in editing configuration files where the user may need to be root to edit a file, but does not wish to run their text editor as the super user.

The doasedit utility accepts one argument, the file to be edited. The text editor used during the editing process is set using the VISUAL environment variable. If VISUAL fails to run, EDITOR is tried instead.

EXIT STATUS

ENVIRONMENT

EDITOR
    The editor command used for editing the target text file. If no EDITOR variable is set, then the command vi is used.

SEE ALSO
doas(1), doas.conf(5)

AUTHORS
Jesse Smith <jessefrgsmith@yahoo.ca>