Skip to content

Instantly share code, notes, and snippets.

@BjornW
Created December 19, 2013 14:20
Show Gist options
  • Save BjornW/8039802 to your computer and use it in GitHub Desktop.
Save BjornW/8039802 to your computer and use it in GitHub Desktop.
Sudo in Ubuntu is compiled with --with-secure-path therefor it does not work as expected (at least to me), this makes it sane again. Just add in your ~/.bashrc
# fixes sudo so it works with user' path
alias sudo='sudo env PATH=$PATH $@'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment