- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to set environment variables for all users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 12:04 AM
тАО07-11-2006 12:04 AM
I need to set some paths for all users into my system. Is there any way to do this in suse linux 8?
I notice there's /etc/PATH file in HP-UX systems, but I don't know if there's something similar in Linux systems.
Thanks in advance for your help.
Regards,
Carles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 12:20 AM
тАО07-11-2006 12:20 AM
Re: How to set environment variables for all users
If they use bash (default in redhat linux)
and all the accounts are local, then they all "source" the /etc/bashrc file (by default).
Thus appending variables to /etc/bashrc will influent all users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 12:31 AM
тАО07-11-2006 12:31 AM
Re: How to set environment variables for all users
all users are local and are using basch shell.
In fact I need to add some paths to environment path variable and I have no idea where can I set it up.
I tried to create profile.local as copy from /etc/profile and I added paths, but it seems system doesn't like this kind of modifications.
Any idea?
Thanks in advance for your help.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 12:38 AM
тАО07-11-2006 12:38 AM
Re: How to set environment variables for all users
edit the file /etc/bashrc
append to its end the line
export PATH=/tmp:$PATH
save and exit
then as one of your users execute this command:
source /etc/bashrc or logout and login back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 02:16 AM
тАО07-11-2006 02:16 AM
Re: How to set environment variables for all users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 03:09 AM
тАО07-11-2006 03:09 AM
Re: How to set environment variables for all users
Thanks to all for your help.
Regards,
Carles