[Feature complete] Edit a file that requires root access
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Mattias Andrée 621ad9b189 Fix errors in copy_file
Signed-off-by: Mattias Andrée <maandree@kth.se>
2 years ago
.gitignore First commit 2 years ago
LICENSE First commit 2 years ago
Makefile Communicate whether file transfers were completed 2 years ago
README Add README and editasroot.8 2 years ago
common.c Fix errors in copy_file 2 years ago
common.h Communicate whether file transfers were completed 2 years ago
config.mk First commit 2 years ago
copier.c Use MSG_PEEK instead of sending unnecessary data 2 years ago
editasroot.8 Add README and editasroot.8 2 years ago
editasroot.c Add missing newline to end of error prints 2 years ago

README

NAME
	editasroot - edit a file that requires root access

SYNOPSIS
	editasroot file

DESCRIPTION
	The editasroot utility uses asroot(8) to get access to the
	specified file, creates a copy of the file and edits it with
	the user's default editor, and then saves the new content to
	the access restricted file.

OPTIONS
	The editasroot utility conforms to the Base Definitions volume
	of POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.

	No option are supported.

OPERANDS
	The following operand is supported:

	file
		The file to edit.

CAVEATS
	The content of the file becomes accessible to the user and
	can be read, and potentially edited (good timing is needed),
	by malicious programs. If this is a security issue, do not
	run this program!

RATIONALE
	This utility lets users edit a file that requires root access,
	but with his own editor configurations.

SEE ALSO
	asroot(8), sudoedit(8)