A few minor (mostly cosmetic) fixes.

Add missing ALL to Runas_Member and Host.
Replace some tabs with spaces.
Fix the syntax of a sudoedit example.
This commit is contained in:
Todd C. Miller
2022-02-08 11:26:55 -07:00
parent 53d3e20099
commit 8adad85b4b
2 changed files with 22 additions and 18 deletions

View File

@@ -25,7 +25,7 @@
.nr BA @BAMAN@ .nr BA @BAMAN@
.nr LC @LCMAN@ .nr LC @LCMAN@
.nr PS @PSMAN@ .nr PS @PSMAN@
.TH "SUDOERS" "@mansectform@" "February 1, 2022" "Sudo @PACKAGE_VERSION@" "File Formats Manual" .TH "SUDOERS" "@mansectform@" "February 8, 2022" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
.nh .nh
.if n .ad l .if n .ad l
.SH "NAME" .SH "NAME"
@@ -917,7 +917,8 @@ Runas_Member ::= '!'* user name |
'!'* %:nonunix_group | '!'* %:nonunix_group |
'!'* %:#nonunix_gid | '!'* %:#nonunix_gid |
'!'* +netgroup | '!'* +netgroup |
'!'* Runas_Alias '!'* Runas_Alias |
'!'* ALL
.RE .RE
.fi .fi
.PP .PP
@@ -949,7 +950,8 @@ Host ::= '!'* host name |
'!'* ip_addr | '!'* ip_addr |
'!'* network(/netmask)? | '!'* network(/netmask)? |
'!'* +netgroup | '!'* +netgroup |
'!'* Host_Alias '!'* Host_Alias |
'!'* ALL
.RE .RE
.fi .fi
.PP .PP
@@ -993,12 +995,12 @@ only the case for non-networked systems.
.sp .sp
.RS 0n .RS 0n
digest ::= [A-Fa-f0-9]+ | digest ::= [A-Fa-f0-9]+ |
[A-Za-z0-9\e+/=]+ [A-Za-z0-9\e+/=]+
Digest_Spec ::= "sha224" ':' digest | Digest_Spec ::= "sha224" ':' digest |
"sha256" ':' digest | "sha256" ':' digest |
"sha384" ':' digest | "sha384" ':' digest |
"sha512" ':' digest "sha512" ':' digest
Digest_List ::= Digest_Spec | Digest_List ::= Digest_Spec |
Digest_Spec ',' Digest_List Digest_Spec ',' Digest_List
@@ -6767,11 +6769,11 @@ sudo(@mansectsu@).
.PP .PP
For example, to allow user operator to edit the For example, to allow user operator to edit the
\(lqmessage of the day\(rq \(lqmessage of the day\(rq
file: file on any machine:
.nf .nf
.sp .sp
.RS 6n .RS 6n
operator sudoedit /etc/motd operator ALL = sudoedit /etc/motd
.RE .RE
.fi .fi
.PP .PP

View File

@@ -24,7 +24,7 @@
.nr BA @BAMAN@ .nr BA @BAMAN@
.nr LC @LCMAN@ .nr LC @LCMAN@
.nr PS @PSMAN@ .nr PS @PSMAN@
.Dd February 1, 2022 .Dd February 8, 2022
.Dt SUDOERS @mansectform@ .Dt SUDOERS @mansectform@
.Os Sudo @PACKAGE_VERSION@ .Os Sudo @PACKAGE_VERSION@
.Sh NAME .Sh NAME
@@ -883,7 +883,8 @@ Runas_Member ::= '!'* user name |
'!'* %:nonunix_group | '!'* %:nonunix_group |
'!'* %:#nonunix_gid | '!'* %:#nonunix_gid |
'!'* +netgroup | '!'* +netgroup |
'!'* Runas_Alias '!'* Runas_Alias |
'!'* ALL
.Ed .Ed
.Pp .Pp
A A
@@ -912,7 +913,8 @@ Host ::= '!'* host name |
'!'* ip_addr | '!'* ip_addr |
'!'* network(/netmask)? | '!'* network(/netmask)? |
'!'* +netgroup | '!'* +netgroup |
'!'* Host_Alias '!'* Host_Alias |
'!'* ALL
.Ed .Ed
.Pp .Pp
A A
@@ -953,12 +955,12 @@ will only match if that is the actual host name, which is usually
only the case for non-networked systems. only the case for non-networked systems.
.Bd -literal .Bd -literal
digest ::= [A-Fa-f0-9]+ | digest ::= [A-Fa-f0-9]+ |
[A-Za-z0-9\e+/=]+ [A-Za-z0-9\e+/=]+
Digest_Spec ::= "sha224" ':' digest | Digest_Spec ::= "sha224" ':' digest |
"sha256" ':' digest | "sha256" ':' digest |
"sha384" ':' digest | "sha384" ':' digest |
"sha512" ':' digest "sha512" ':' digest
Digest_List ::= Digest_Spec | Digest_List ::= Digest_Spec |
Digest_Spec ',' Digest_List Digest_Spec ',' Digest_List
@@ -6257,9 +6259,9 @@ option in
.Pp .Pp
For example, to allow user operator to edit the For example, to allow user operator to edit the
.Dq message of the day .Dq message of the day
file: file on any machine:
.Bd -literal -offset indent .Bd -literal -offset indent
operator sudoedit /etc/motd operator ALL = sudoedit /etc/motd
.Ed .Ed
.Pp .Pp
The operator user then runs The operator user then runs