Hi all, I got the right answer from Geoff Lane. Here is his answer: PATH=/usr/bin: is the system default (set by login I think) and is what you see if no other PATH is set in /etc/default/login, /etc/profile, .profile etc. PATH=/usr/bin::/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb: includes /usr/dt/bin which suggest that it was set during a login via CDE. The default PATH for CDE logins is found in Dtlogin*userPath: in /usr/dt/config (or /etc/dt/config if modified.) If you also use SSH, PATH may be set within the ssh global config. It's a mess. Anything that uses an authenticated login should pick up /etc/default/login and use the value there but history means that every major login path into the system uses it's own standard :-( I now ignore them all and explicitly set PATH in .profile (and deal with cron, su etc as I need to.) Tanks Geoff. The original e-mail: > ======================================================== > I have some problem with the environment variable PATH. > I am running Solaris 8 on Ultra 1, 10 and Enterprise 220R. > On the Ultra 1 and 10 I get following PATH variable: > > PATH=/usr/bin::/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb: > > On the Ultra Enterprise 220R I get following PATH variable: > > PATH=/usr/bin: > > This is if I ignore /etc/profile and other config files. > The difference is that the Ultra 1 and 10 have patch > 108528-15, while the Ultra Enterprise 220R have patch > 108528-14. > > The question is where is the PATH variable initialized > before /etc/profile is read and why is this difference > between the patches? > ======================================================== Regards Jon Ingason | Administration of UNIX Sr Field Ops Eng | DNS, Mail, News, Web, etc ------------------------------------------------------- IP/Router Operation Equant Sweden AB ------------------------------------------------------- Solna strandvdg 80 | Work: +46 8 5191 3316 PO BOX 1 | Fax: +46 8 5191 3200 171 18 SOLNA | Cellular: +46 708 91 3316 SWEDEN | E-mail: Jon.Ingason@equant.com ------------------------------------------------------- This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments. Thank you. _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu Dec 5 10:02:02 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:59 EST