Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DOASEDIT(8)		     System Manager's Manual		     DOASEDIT(8)

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 loca-
     tion, 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. If EDITOR  fails
     then the fallback is to use vi.

EXIT STATUS
     The doasedit utility exits 0 on success, and >0 if an error occurs.

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>

FreeBSD ports 15.quarterly     September 21, 2021		     DOASEDIT(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=doasedit&sektion=8&manpath=FreeBSD+Ports+15.1.quarterly>

home | help