How to set path permanently.

Can anyone tell me how to set path permanently....

I had configured sendmail..and now the path /usr/lib remains only till I log off...

I am entering the following commands, as a root user.

#PATH=$PATH:/usr/bin::/usr/lib

#export PATH

I tried entering this file in /etc/profile

WHERE CAN WE LOCATE THE FILE WHICH HAS ALL THE PATHS STORED, WHICH IS READ DURING THE BOOT.

David

[436 byte] By [DavidSun] at [2007-11-25 22:52:58]
# 1
Check the $HOME/.profile as that may be inadvertently over-writing the value set in /etc/profile.
SimonM at 2007-7-5 17:08:24 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...