LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2023, 12:19 PM   #1
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Rep: Reputation: 2
Question 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?
 
Old 04-20-2023, 12:23 PM   #2
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 2
Smile 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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change PATH environment variable for all users. Axel van Moorsel Linux - General 6 09-09-2016 06:16 AM
Environment variable that dynamically changes when another variable is changed youtoo Linux - Newbie 4 02-17-2016 01:44 AM
All users SSH -> YES ... All users Console -> NO kspann Linux - Server 2 05-26-2010 10:56 AM
AWK a variable Ouptut to a new variable and using the new variable with the old one alertroshannow Linux - Newbie 4 02-16-2009 12:08 AM
How to remove Mandrake Galaxy Theming for all users and all new users. Zombie_Ryushu Mandriva 0 01-04-2005 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration