Bourne and Korn Shells
The Bourne and Korn shells execute the file /etc/profile when you log on to HP-UX. They then look for a file in your home directory called .profile. If it exists, it is executed. If you use SAM to add new users, the file /etc/d.profile is automatically copied to the home group of the new user. If you want to make global changes to the commands executed at login time, you should change two files:
/etc/profile
{always executed at login}
/etc/d.profile
{default .profile for new users}