Changeset 193bdf3


Ignore:
Timestamp:
11/08/2021 06:23:55 PM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
f713df3
Parents:
70ea525d
Message:

Expand sudo configuration comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/sudo.xml

    r70ea525d r193bdf3  
    216216      </para>
    217217
    218 <screen role="root"><userinput>cat &gt; /etc/sudoers.d/sudo &lt;&lt; "EOF"
     218<screen role="root"><userinput>cat &gt; /etc/sudoers.d/00-sudo &lt;&lt; "EOF"
    219219<literal>Defaults secure_path="/usr/sbin:/usr/bin"
    220220%wheel ALL=(ALL) ALL</literal>
    221221EOF</userinput></screen>
     222
     223      <note>
     224        <para>
     225          In very simple installations where there is only one user, it
     226          may be easier to just edit the <filename>/etc/sudoers</filename>
     227          file directly.  In that case, the <varname>secure_path</varname>
     228          entry may not be needed and using <command>sudo -E ...</command> can
     229          import the non-privileged user's full environment into the
     230          privileged session.
     231        </para>
     232       
     233        <para>
     234          The files in the <filename class="directory">/etc/sudoers.d</filename>
     235          directory are parsed in sorted lexical order. Be careful that entries
     236          in an added file do not overwrite previous entries.
     237        </para>
     238      </note>
    222239
    223240      <para>
Note: See TracChangeset for help on using the changeset viewer.