X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2FREADME.Debian;fp=debian%2FREADME.Debian;h=8da7c94f88bf0e00589f9fc3cf7b4781ecf54ad2;hb=d1a119ed0be74c7354c99adb432ccc7de5e44ba7;hp=0000000000000000000000000000000000000000;hpb=d208ca153de3f8b0d0a0c9c307ec8e9cf576b40b;p=debian%2Fsudo diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..8da7c94 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,19 @@ +The version of sudo that ships with Debian by default resets the +environment, as described by the "env_reset" flag in the sudoers file. + +This implies that all environment variables are removed, except for +HOME, LOGNAME, PATH, SHELL, TERM, DISPLAY, XAUTHORITY, XAUTHORIZATION, +LANG, LANGUAGE, LC_*, and USER. + +In case you want sudo to preserve more environment variables, you must +specify the env_keep variable in the sudoers file. You should edit the +sudoers file using the visudo tool. + +Examples: +Preserve the default variables plus the EDITOR variable: + + Defaults env_keep+="EDITOR" + +Preserve the default variables plus all variables starting with LC_: + + Defaults env_keep+="LC_*"