- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- .profile question
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
Forums
Discussions
Discussions
Discussions
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
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
05-12-2005 08:02 AM
05-12-2005 08:02 AM
I have a question regarding users .profile
I want to provide all users a search PATH in their .profile, I know instead of add the PATH in each .profile, I can just add the PATH into the /etc/profile.
The problem is that I added the PATH to the /etc/profile but it won't work for the users. Can someone plesae shed some light here?
Here's what the /etc/profile PATH looks like:
-bash-2.05b$ more /etc/profile
# @(#)B.11.11_LR
# Default (example of) system-wide profile file (/usr/bin/sh initialization).
# This should be kept to the bare minimum every user needs.
# Ignore HUP, INT, QUIT now.
trap "" 1 2 3
# Set the default paths - Do NOT modify these.
# Modify the variables through /etc/PATH and /etc/MANPATH
PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/local/bin:/usr/local/bi
n/sudo
MANPATH=/usr/share/man:/usr/contrib/man:/usr/local/man
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:04 AM
05-12-2005 08:04 AM
Re: .profile question
In the user profile, their path must start with something like:
PATH=$PATH:/home/fred/bin
So the $PATH means to pick up the PATH variable you have already set up.
If the user has:
PATH=/home/fred/bin
Then they override what you have instead of adding to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:09 AM
05-12-2005 08:09 AM
Solution# Set the default paths - Do NOT modify these.
# Modify the variables through /etc/PATH and /etc/MANPATH
Go to /etc/PATH and add there whatever you want. I should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:09 AM
05-12-2005 08:09 AM
Re: .profile question
PATH=`cat /etc/PATH`
gets executed somewhere. If it doesn't you won't get the contents of /etc/PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:15 AM
05-12-2005 08:15 AM
Re: .profile question
Actaully by editing the /etc/PATH works and that's what I was looking for. And it's good to know what $PATH is for as well!
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:16 AM
05-12-2005 08:16 AM
Re: .profile question
PATH=$PATH
export PATH
Modify the /etc/PATH to include what you want.
This way everybody gets the same PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 08:17 AM
05-12-2005 08:17 AM
Re: .profile question
Joe