HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Over write PATH with /etc/PATH
Operating System - HP-UX
1833788
Members
2633
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-27-2005 05:00 AM
04-27-2005 05:00 AM
I loaded HPUX 10.2 a few weeks ago. I configured the /etc/profile to add /usr/sbin to the PATH list and exported PATH. In addition, I added the same change to the .profile or .cshrc of every user on the system. The problem that I am having is that the /usr/sbin is not showing up when the echo $PATH is given. An echo to $PATH displays many different directories that most users probably would not use in a life time such as /usr/dt/bin or /usr/local/bin/X11 or whatever. I frankly don't know where these other PATH names are being assigned. One friend pointed out to me that /etc/PATH file holds the key to all the PATH's. But, HPUX 10.2 doesn't have a /etc/PATH file. So first, where do all the entries come from in $PATH? Second and most important, How can I get the enteries that are posted in the .profile and the .cshrc to be recognized over the existing PATH or how does implement /etc/PATH file?
Thanks to all that respond.
Thanks to all that respond.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:04 AM
04-27-2005 05:04 AM
Re: Over write PATH with /etc/PATH
In the individual .profile files,
export PATH=$PATH:/home:/
The $PATH in the above line references the /etc/profile PATH listing.
export PATH=$PATH:/home:/
The $PATH in the above line references the /etc/profile PATH listing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:42 AM
04-27-2005 05:42 AM
Re: Over write PATH with /etc/PATH
Alexander --
A user could specify their own PATH in their .profile without referencing the system's setting for $PATH.
So if you want to add /home/bin to your path in the .profile, it should be:
PATH=$PATH:/home/bin
Some user may have done:
PATH=/home/bin
Or even if they just left out the $
PATH=PATH:/home/bin
This will look for two directories PATH and /home/bin.
Best regards,
Oz
A user could specify their own PATH in their .profile without referencing the system's setting for $PATH.
So if you want to add /home/bin to your path in the .profile, it should be:
PATH=$PATH:/home/bin
Some user may have done:
PATH=/home/bin
Or even if they just left out the $
PATH=PATH:/home/bin
This will look for two directories PATH and /home/bin.
Best regards,
Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP