From: Todd C. Miller Date: Tue, 9 Aug 2016 16:26:02 +0000 (-0600) Subject: Document that fqdn, runas_default and sudoers_locale are parsed early. X-Git-Tag: SUDO_1_8_18^2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d17bc132de01fd56574f4e9cc36a7de412659361;p=sudo Document that fqdn, runas_default and sudoers_locale are parsed early. --- diff --git a/doc/sudoers.cat b/doc/sudoers.cat index 88d121742..33d576546 100644 --- a/doc/sudoers.cat +++ b/doc/sudoers.cat @@ -458,6 +458,10 @@ SSUUDDOOEERRSS FFIILLEE FFOORRMMAATT Defaults entries are parsed in the following order: generic, host and user Defaults first, then runas Defaults and finally command defaults. + If there are multiple Defaults settings of the same type, the last + matching setting is used. The following Defaults settings are parsed + before all others since they may affect subsequent entries: _f_q_d_n, + _r_u_n_a_s___d_e_f_a_u_l_t, _s_u_d_o_e_r_s___l_o_c_a_l_e. See _S_U_D_O_E_R_S _O_P_T_I_O_N_S for a list of supported Defaults parameters. @@ -2539,4 +2543,4 @@ DDIISSCCLLAAIIMMEERR file distributed with ssuuddoo or https://www.sudo.ws/license.html for complete details. -Sudo 1.8.18 January 20, 2016 Sudo 1.8.18 +Sudo 1.8.18 August 9, 2016 Sudo 1.8.18 diff --git a/doc/sudoers.man.in b/doc/sudoers.man.in index 8a6644f10..052ec9a22 100644 --- a/doc/sudoers.man.in +++ b/doc/sudoers.man.in @@ -21,7 +21,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.TH "SUDOERS" "5" "January 20, 2016" "Sudo @PACKAGE_VERSION@" "File Formats Manual" +.TH "SUDOERS" "5" "August 9, 2016" "Sudo @PACKAGE_VERSION@" "File Formats Manual" .nh .if n .ad l .SH "NAME" @@ -957,6 +957,13 @@ that does not exist in a list. Defaults entries are parsed in the following order: generic, host and user Defaults first, then runas Defaults and finally command defaults. +If there are multiple Defaults settings of the same type, the last +matching setting is used. +The following Defaults settings are parsed before all others since +they may affect subsequent entries: +\fIfqdn\fR, +\fIrunas_default\fR, +\fIsudoers_locale\fR. .PP See \fISUDOERS OPTIONS\fR diff --git a/doc/sudoers.mdoc.in b/doc/sudoers.mdoc.in index 57921605a..74508d0d7 100644 --- a/doc/sudoers.mdoc.in +++ b/doc/sudoers.mdoc.in @@ -19,7 +19,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.Dd January 20, 2016 +.Dd August 9, 2016 .Dt SUDOERS @mansectform@ .Os Sudo @PACKAGE_VERSION@ .Sh NAME @@ -911,6 +911,13 @@ that does not exist in a list. Defaults entries are parsed in the following order: generic, host and user Defaults first, then runas Defaults and finally command defaults. +If there are multiple Defaults settings of the same type, the last +matching setting is used. +The following Defaults settings are parsed before all others since +they may affect subsequent entries: +.Em fqdn , +.Em runas_default , +.Em sudoers_locale . .Pp See .Sx SUDOERS OPTIONS