mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-01-22 12:52:01 +08:00
Tweak the style of sudoers file
This commit is contained in:
parent
60bed94bad
commit
d78afd22ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user