mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08: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:
|
||||
</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"
|
||||
%wheel ALL=(ALL) ALL</literal>
|
||||
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>
|
||||
For details, see <command>man sudoers</command>.
|
||||
</para>
|
||||
|
Loading…
Reference in New Issue
Block a user