![]() |
Remove environment variable for all users?
Running RHEL 7.9 and have a small issue with environment variables...
When any user logs onto the system, including root, the variables ftp_proxy, http_proxy and https_proxy are all set to a value. This causes issues with updates, etc. as this proxy is not working. I would like to remove these variables from the system for all users. I have checked in /etc/profile and the /etc/profile.d directory and don't see any entries that would be enabling these variables. The variables are not being set in the users .bashrc or .bash_profile files. What else or where else could be setting these variables? |
Found it!
I just found the answer...
I found the file /etc/environment. It appears to have the offending environment variables configured. I commented out these lines and users no longer get these proxies when they log in. |
All times are GMT -5. The time now is 05:52 PM. |