mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
Expand sudo configuration comments
This commit is contained in:
parent
70ea525df2
commit
193bdf3d12
@ -215,11 +215,28 @@ ln -sfv libsudo_util.so.0.0.0 /usr/lib/sudo/libsudo_util.so.0</userinput></scree
|
|||||||
<systemitem class="username">root</systemitem> user:
|
<systemitem class="username">root</systemitem> user:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>cat > /etc/sudoers.d/sudo << "EOF"
|
<screen role="root"><userinput>cat > /etc/sudoers.d/00-sudo << "EOF"
|
||||||
<literal>Defaults secure_path="/usr/sbin:/usr/bin"
|
<literal>Defaults secure_path="/usr/sbin:/usr/bin"
|
||||||
%wheel ALL=(ALL) ALL</literal>
|
%wheel ALL=(ALL) ALL</literal>
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
In very simple installations where there is only one user, it
|
||||||
|
may be easier to just edit the <filename>/etc/sudoers</filename>
|
||||||
|
file directly. In that case, the <varname>secure_path</varname>
|
||||||
|
entry may not be needed and using <command>sudo -E ...</command> can
|
||||||
|
import the non-privileged user's full environment into the
|
||||||
|
privileged session.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The files in the <filename class="directory">/etc/sudoers.d</filename>
|
||||||
|
directory are parsed in sorted lexical order. Be careful that entries
|
||||||
|
in an added file do not overwrite previous entries.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For details, see <command>man sudoers</command>.
|
For details, see <command>man sudoers</command>.
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user