This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editasroot.8
85 lines (70 loc) · 1.63 KB
/
editasroot.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.TH EDITASROOT 8 editasroot
.SH NAME
editasroot - edit a file that requires root access
.SH SYNOPSIS
.B editasroot
.I file
.SH DESCRIPTION
The
.B editasroot
utility uses
.BR asroot(8)
to get access to the specified
.IR 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.
.SH OPTIONS
The
.B editasroot
utility conforms to the Base Definitions volume of POSIX.1-2017,
.IR "Section 12.2" ,
.IR "Utility Syntax Guidelines" .
.PP
No option are supported.
.SH OPERANDS
The following operand is supported:
.TP
.I file
The file to edit.
.SH ENVIRONMENT VARIABLES
The following environment variables affects the execution of
.BR editasroot :
.TP
.SH EDITOR
Filename of the editor to edit the file path if the
program is started in the foreground or if
.B VISUAL
is unset. (Default is
.BR vi )
.TP
.SH PATH
Default. See to the Base Definitions volume of POSIX.1-2017, Section 8.3, Other Environment Variables.
.TP
.SH VISUAL
Filename of the editor to edit the file path if the
program is started in the background.
.SH EXIT STATUS
Default.
.SH CONSEQUENCES OF ERRORS
Default.
.SH APPLICATION USAGE
None.
.SH EXAMPLES
None.
.SH 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!
.SH RATIONALE
This utility lets users edit a file that requires root access,
but with his own editor configurations.
.SH FUTURE DIRECTIONS
None.
.SH SEE ALSO
.BR asroot (8),
.BR sudoedit (8)
.SH AUTHORS
Mattias Andrée
.RI < m@maandree.se >