Using Bourne shell on Solaris 10, there are many environment variables defined that are not in the .profile. Where and how do these get defined?
|
Try looking in /etc/profile and /etc/default/login on Solaris. Some values may be built-in defaults or picked up from the environment, such as LOGNAME or HOSTNAME. | |||||
feedback
|
|
In addition to See the sh (1) man page. Which particular variables are you asking about? | |||
|
feedback
|
|
Env vars can be set in a lot of places: startup scripts, /etc/profile for users without a .profile, via cron, via service startups...anything that is read, referenced, or executed. | |||
|
feedback
|