- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- adding to /etc/profile
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
02-14-2002 08:27 AM
02-14-2002 08:27 AM
customize to your installation or is there another version of this file somewhere that can be changed?
I would like to add some commands that all users will have access to, both new and existing. Will the file that I modify make the changes I make avaiable to existing users the next time they log on?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:31 AM
02-14-2002 08:31 AM
Re: adding to /etc/profile
You asked the same question for the second time:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x335f50011d20d6118ff40090279cd0f9,00.html
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:32 AM
02-14-2002 08:32 AM
Re: adding to /etc/profile
Jip! thats is the one.
Check out man profile.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:33 AM
02-14-2002 08:33 AM
Re: adding to /etc/profile
This is not the only way to accomplish your goal. One way is to use the /etc/skel dir. Create your modified .profile in there, and when you create a new user account tell the system to use the /etc/skel dir for creating files in their homedir. i.e.
useradd -u 999 -g 20 -d /home/username -c "Comments" -m -k /etc/skel loginname.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:33 AM
02-14-2002 08:33 AM
Re: adding to /etc/profile
What you mean by, want to add some commands. If these are executables you are talking about, you shoule put them in /usr/bin. If these are environment varaibles you want to be set for all the users you should add them to /etc/profile.
You have already asked this question once,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x335f50011d20d6118ff40090279cd0f9,00.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2002 08:37 AM
02-14-2002 08:37 AM
Re: adding to /etc/profile
When a user logs on, /etc/profile is run before the user .profile is run. Therefore, anything you do in /etc/profile could be overridden in the users .profile. The answer to your question is that it depends:
Suppose that in /etc/profile you do something like:
PATH=/bin:/usr/bin:/usr/local/bin:/usr/specialbin
export PATH
Now for User A, the .profile does this:
export PATH=${PATH}:.
and for User B the .profile does this:
export PATH=.:/usr/bin/:/usr/local/bin
A would be able to easily execute the files in /usr/specialbin but B would have to explicitly give the pathname to those same files.
It'sd generally a good idea to copy /etc/profile to something like /etc/profile.orig before making changes. That way you can't get yourself out of trouble as quickly as you got yourself in.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2002 06:49 PM
02-17-2002 06:49 PM
Re: adding to /etc/profile
Why do you not try to edit or create /etc/PATH file?
Regards,