Explain 'sudo -E' someplace accessible
See original GitHub issueIssue triage update by Erik 2021-10-22: this remains relevant.
I suggest a topic guide entry in our documentation about the choices we’ve made to add exempt_group
in sudoers to preserve PATH for those users, and how the -E flag is relevant.
It’s important, but need to figure out where to explain it without complicating things
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
sudo -E foo - explainshell.com
sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy. The real...
Read more >Why does sudo change the PATH? [closed] - Stack Overflow
In case someone else runs accross this and wants to just disable all path variable changing for all users. Access your sudoers file...
Read more >Sudo - ArchWiki
Sudo is an alternative to su for running commands as root. Unlike su, which launches a root shell that allows all further commands...
Read more >How to make `sudo` preserve $PATH? - Unix Stack Exchange
You can always do: sudo env "PATH=$PATH" godi_console. As a security measure on Debian, /etc/sudoers has the secure_path option set to a safe...
Read more >What does the -E in sudo -E do? - Super User
-E - The -E (preserve environment) option indicates to the security policy that the user wishes to preserve their existing environment variables ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would also recommend “-H, --set-home” so that users do not get warnings like
I have a PR in that adds the -E as part of solving a problem where the installation is behind a proxy.