Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 15:09:30 -0500
From:      "Patrick Bihan-Faou" <patrick@netzuno.com>
To:        <freebsd-hackers@freebsd.org>
Cc:        <freebsd-security@freebsd.org>
Subject:   Bash2 removes SSH_CLIENT from the environment
Message-ID:  <HJEEKLMFLKEOKHOKNPBMGEIGCJAA.patrick@netzuno.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am writing some script that looks for the SSH_CLIENT environment variable.
As specified in the sshd(8) man page, this variable should contain the IP
address of the client, the port number on the client side and the port
number on the server side.

However I found that if the login shell of the user is set to bash (version
2.03 or 2.04 at least), this variable is never set. Upon inspection of the
code for bash, it appears that bash is explicitely removing the definition
of this environment variable. Would anybody have an idea why ???

Also the fix to leave SSH_CLIENT defined is trivial, is that something that
would be desirable for the bash2 port ?

Patrick.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HJEEKLMFLKEOKHOKNPBMGEIGCJAA.patrick>