From 9a33007630be49022982bf39908e666e33ccf369 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 17 Dec 2001 23:33:47 +0000 Subject: [PATCH] o Typo, Runas_User_List should be Runas_List o a User_List can not contain a uid o mention that the Defaults section should come after Alias definitions but before the user specifications --- sudoers.pod | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sudoers.pod b/sudoers.pod index 08f9cc0d1..99e1ce386 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -96,7 +96,7 @@ C and C. User_Alias ::= NAME '=' User_List - Runas_Alias ::= NAME '=' Runas_User_List + Runas_Alias ::= NAME '=' Runas_List Host_Alias ::= NAME '=' Host_List @@ -122,7 +122,6 @@ The definitions of what constitutes a valid I member follow. User ',' User_List User ::= '!'* username | - '!'* '#'uid | '!'* '%'group | '!'* '+'netgroup | '!'* User_Alias @@ -143,9 +142,9 @@ just cancel each other out. '!'* +netgroup | '!'* Runas_Alias -Likewise, a C has the same possible elements -as a C, except that it can include a C, -instead of a C. +A C is similar to a C except that it can +also contain uids (prefixed with '#') and instead of Ces +it can contain Ces. Host_List ::= Host | Host ',' Host_List @@ -228,6 +227,10 @@ These operators are used to add to and delete from a list respectively. It is not an error to use the C<-=> operator to remove an element that does not exist in a list. +Note that since the I file is parsed in order the best place +to put the Defaults section is after the Host, User, and Cmnd aliases +but before the user specifications. + B: =over 12 -- 2.40.0