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

FreeBSD Manual Pages

  
 
  

home | help
DOASEDIT(1)		    General Commands Manual		   DOASEDIT(1)

NAME
       doasedit	-- edit	a text file and	then write the file back to its	origi-
       nal 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	origi-
       nal 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 en-
       vironment variable. If VISUAL fails to run, EDITOR is tried instead.

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 14.quarterly    September	13, 2021		   DOASEDIT(1)

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

home | help