Inheriting environment - sshd server to shell child

Kevin Steves stevesk at pobox.com
Thu Jan 2 13:04:46 EST 2003


On Tue, Dec 31, 2002 at 06:47:07PM +0000, Bryan Henderson wrote:
> So I maintain environment variables.  Init sets them via initscript in
> every process it spawns.  A few are even set via kernel boot
> parameters and inherited by all of Init's progeny.  Traditional logins
> work fine because I use the -p option on Login ("preserve
> environment").  Ssh via Openssh defeats the plan, though.  Openssh
> would have me set those environment variables one place for every
> process _except_ shells spawned by sshd, but in each shell profile for
> shells spawned by sshd.

you are asking for a sshd login -p equivalent?  obviously, right now
the default deny behaviour used for the environment is correct.



More information about the openssh-unix-dev mailing list