Created
February 23, 2011 23:47
-
-
Save opie4624/841453 to your computer and use it in GitHub Desktop.
example environment variables for sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Locale settings | |
Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET" | |
## | |
## Run X applications through sudo; HOME is used to find the | |
## .Xauthority file. Note that other programs use HOME to find | |
## configuration files and this may lead to privilege escalation! | |
Defaults env_keep += "HOME" | |
## | |
## X11 resource path settings | |
Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH" | |
## | |
## Desktop path settings | |
Defaults env_keep += "QTDIR KDEDIR" | |
## | |
## Allow sudo-run commands to inherit the callers' ConsoleKit session | |
Defaults env_keep += "XDG_SESSION_COOKIE" | |
## | |
## Uncomment to enable special input methods. Care should be taken as | |
## this may allow users to subvert the command being run via sudo. | |
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment