HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Logging in
Operating System - HP-UX
1833883
Members
1773
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
05-20-2002 01:07 AM
05-20-2002 01:07 AM
guys,
should be nice and simple this one.
When a user log into the system, which profile config file is referenced first? I thought that now the system is already up and running, the etc/profile is no longer ran each time a user logs in, but I have been told that this config file is always ran prior to the users .profile file at login (despite the system being up and running).
is this correct?
thanks in advance
john
should be nice and simple this one.
When a user log into the system, which profile config file is referenced first? I thought that now the system is already up and running, the etc/profile is no longer ran each time a user logs in, but I have been told that this config file is always ran prior to the users .profile file at login (despite the system being up and running).
is this correct?
thanks in advance
john
chicken or egg first?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2002 01:08 AM
05-20-2002 01:08 AM
Re: Logging in
Yes, /etc/profile is executed first, then $HOME/.profile
HTH
Duncan
I am an HPE Employee
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2002 01:23 AM
05-20-2002 01:23 AM
Solution
Hi,
The system-wide profile is always executed first before the user's profile during the user's login. This is independent of system startup (i.e. it has nothing to do with system startup scripts).
However, note that the system-wide profile can refer to either /etc/profile or /etc/csh.login. Which system-wide profile is used depends on your login shell referred to in /etc/passwd for your user. The user's profile also depends on the user's login shell.
If your user is using /usr/bin/csh in /etc/passwd as the login shell, then /etc/csh.login is executed but /etc/profile is NOT executed. Subsequently, $HOME/.cshrc followed by $HOME/.login are executed.
Hope this helps. Regards.
Steven Sim Kok Leong
The system-wide profile is always executed first before the user's profile during the user's login. This is independent of system startup (i.e. it has nothing to do with system startup scripts).
However, note that the system-wide profile can refer to either /etc/profile or /etc/csh.login. Which system-wide profile is used depends on your login shell referred to in /etc/passwd for your user. The user's profile also depends on the user's login shell.
If your user is using /usr/bin/csh in /etc/passwd as the login shell, then /etc/csh.login is executed but /etc/profile is NOT executed. Subsequently, $HOME/.cshrc followed by $HOME/.login are executed.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2002 06:13 AM
05-20-2002 06:13 AM
Re: Logging in
And just to confuse things a bit, if you are logging into a workstation running Xwindows, specifically CDE, local terminal windows will (by default) bypass all global and local profiles. The respective man pages for the various shells talk about the profile sequences and you can read more about profiles in CDE here:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2de59276484dd611abdb0090277a778c,00.html
Bill Hassell, sysadmin
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2de59276484dd611abdb0090277a778c,00.html
Bill Hassell, sysadmin
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