From d78afd22ac65eac3ffa9392e5fb5d88b30ec6e41 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Sat, 19 Mar 2022 02:26:43 +0800 Subject: [PATCH] Tweak the style of sudoers file --- lkmpg.tex | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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