Need to re-source /etc/profile to access the net when sudo bash-ing
Hi all,
I wondered if anyone could give me a hint on this. Any time for some reason as user I need to sudo bash in a terminal (e.g. in order to emerge a package) I have to source /etc/profile to retrieve the http_proxy/ftp/RSYNC varariables and make the access to the internet working through the proxy. Can this be avoided or I need to put those export variables in root's directory's bash_profile? Thanks, Pier |
If you want to TS this yourself AFAIK there's three things to consider: 0) the way BASH is invoked (see 'man bash' under INVOCATION), 1) the way Sudo is set to scrub environment variables ('man sudoers': "env_reset") and 2) any distro specific malarky.
|
All times are GMT -5. The time now is 03:12 AM. |