Hello all,
I am a bit confused not only because I am new to Solaris but because when I run "env" I get a list of variables that are not in the user .profile. Where else can the account be getting environment variables from?
How is it a user account gets its environment upon logging it, are there levels, like global settings then user settings? I am trying to figure our where the settins are being applied from so I can edit it.
Some stuff may be set by sshd daemon. Some stuff is set by the login program. But once the shell is exec'ed it will read the file like /etc/profile and .profile. You need to stop worrying about where they get set. You want to change them? If you want to change them for all users, do it in /etc/profile. For an individual user change them in .profile. It does not matter where they get set. Are you going to write a new sshd? Or a new login? Just put the stuff you want in the appropriate config file. The environment will be what you want before the shell passes control to the user. But remember that users can override your choices by putting stuff in their individual .profile files. You cannot control that.