From: Jim Huang Date: Fri, 18 Mar 2022 18:26:43 +0000 (+0800) Subject: Tweak the style of sudoers file X-Git-Tag: latest~67 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=d78afd22ac65eac3ffa9392e5fb5d88b30ec6e41;p=lkmpg Tweak the style of sudoers file --- diff --git a/lkmpg.tex b/lkmpg.tex index c216afb..c6cbfa0 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -323,13 +323,10 @@ However, there are three ways to solve this problem. \item {You can preserve environment variables by appending them to \verb|env_keep| in \verb|/etc/sudoers|. \begin{code} - ## sudoers file. - ## - ... - Defaults env_keep += ``ftp_proxy http_proxy https_proxy no_proxy PWD'' + Defaults env_keep += "PWD" \end{code} - After finishing setting modification, you can check the environment variable settings by: + After applying the above change, you can check the environment variable settings by: \begin{verbatim} $ sudo -s