Tweak the style of sudoers file

This commit is contained in:
Jim Huang 2022-03-19 02:26:43 +08:00
parent 60bed94bad
commit d78afd22ac

View File

@ -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