From 8adad85b4bf9629814a94a9b34974b7172eed97c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 8 Feb 2022 11:26:55 -0700 Subject: [PATCH] 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. --- docs/sudoers.man.in | 20 +++++++++++--------- docs/sudoers.mdoc.in | 20 +++++++++++--------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/docs/sudoers.man.in b/docs/sudoers.man.in index a92b2d519..c2fff20fc 100644 --- a/docs/sudoers.man.in +++ b/docs/sudoers.man.in @@ -25,7 +25,7 @@ .nr BA @BAMAN@ .nr LC @LCMAN@ .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 .if n .ad l .SH "NAME" @@ -917,7 +917,8 @@ Runas_Member ::= '!'* user name | '!'* %:nonunix_group | '!'* %:#nonunix_gid | '!'* +netgroup | - '!'* Runas_Alias + '!'* Runas_Alias | + '!'* ALL .RE .fi .PP @@ -949,7 +950,8 @@ Host ::= '!'* host name | '!'* ip_addr | '!'* network(/netmask)? | '!'* +netgroup | - '!'* Host_Alias + '!'* Host_Alias | + '!'* ALL .RE .fi .PP @@ -993,12 +995,12 @@ only the case for non-networked systems. .sp .RS 0n digest ::= [A-Fa-f0-9]+ | - [A-Za-z0-9\e+/=]+ + [A-Za-z0-9\e+/=]+ Digest_Spec ::= "sha224" ':' digest | - "sha256" ':' digest | - "sha384" ':' digest | - "sha512" ':' digest + "sha256" ':' digest | + "sha384" ':' digest | + "sha512" ':' digest Digest_List ::= Digest_Spec | Digest_Spec ',' Digest_List @@ -6767,11 +6769,11 @@ sudo(@mansectsu@). .PP For example, to allow user operator to edit the \(lqmessage of the day\(rq -file: +file on any machine: .nf .sp .RS 6n -operator sudoedit /etc/motd +operator ALL = sudoedit /etc/motd .RE .fi .PP diff --git a/docs/sudoers.mdoc.in b/docs/sudoers.mdoc.in index 88200dccd..a7119b7d9 100644 --- a/docs/sudoers.mdoc.in +++ b/docs/sudoers.mdoc.in @@ -24,7 +24,7 @@ .nr BA @BAMAN@ .nr LC @LCMAN@ .nr PS @PSMAN@ -.Dd February 1, 2022 +.Dd February 8, 2022 .Dt SUDOERS @mansectform@ .Os Sudo @PACKAGE_VERSION@ .Sh NAME @@ -883,7 +883,8 @@ Runas_Member ::= '!'* user name | '!'* %:nonunix_group | '!'* %:#nonunix_gid | '!'* +netgroup | - '!'* Runas_Alias + '!'* Runas_Alias | + '!'* ALL .Ed .Pp A @@ -912,7 +913,8 @@ Host ::= '!'* host name | '!'* ip_addr | '!'* network(/netmask)? | '!'* +netgroup | - '!'* Host_Alias + '!'* Host_Alias | + '!'* ALL .Ed .Pp 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. .Bd -literal digest ::= [A-Fa-f0-9]+ | - [A-Za-z0-9\e+/=]+ + [A-Za-z0-9\e+/=]+ Digest_Spec ::= "sha224" ':' digest | - "sha256" ':' digest | - "sha384" ':' digest | - "sha512" ':' digest + "sha256" ':' digest | + "sha384" ':' digest | + "sha512" ':' digest Digest_List ::= Digest_Spec | Digest_Spec ',' Digest_List @@ -6257,9 +6259,9 @@ option in .Pp For example, to allow user operator to edit the .Dq message of the day -file: +file on any machine: .Bd -literal -offset indent -operator sudoedit /etc/motd +operator ALL = sudoedit /etc/motd .Ed .Pp The operator user then runs