AIX reading /etc/environment out of step.

H.G.Borrmann hans-gunther.borrmann at rz.uni-freiburg.de
Thu Feb 7 01:15:16 EST 2002


"Booker C. Bense" wrote:

> On Tue, 22 Jan 2002 mouring at etoh.eviladmin.org wrote:
>
> >
> >
> > On Tue, 22 Jan 2002, Gert Doering wrote:
> >
> > > Hi,
> > >
> > > On Tue, Jan 22, 2002 at 12:09:13PM -0600, mouring at etoh.eviladmin.org wrote:
> > > > I was discussing with Don about a private topic..and while skimming the
> > > > code I noticed that during a 'ssh mouring at site ls'  the /etc/environment
> > > > is *ONLY* read if the remote machine is an AIX box.  This is undocumented
> > > > and I'm wondering if someone using AIX could explain WHY it exists in the
> > > > session.c:do_child()?  No other OS has this.  I don't see why AIX should
> > > > require it.
> > >
> > > All other ways to log into AIX read this.  So by doing it you're easing
> > > switchover from rlogin/whatever to ssh.
> >
>
> - It's the AIX way. There are variables set in there that are required
> for interaction with the system libraries. You either have to read it
> or duplicate it.
>
> - Booker C. Bense
>
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev

The init process reads /etc/environment when it starts and puts all variables in
its environment which is inherited by all
processes. So there is no need to read /etc/environment again. Thats what I know.

--
.______________________________________________________________.
|H.G.Borrmann                           |Tel.: (0761) 203-4652 |
|Rechenzentrum der Universitaet Freiburg|Fax:  (0761) 203-4643 |
|Hermann-Herder-Str. 10 D79104 FREIBURG                        |






More information about the openssh-unix-dev mailing list