Sending PATH using SendEnv

Tim Rice tim at multitalents.net
Thu Apr 1 04:49:39 EST 2010


On Wed, 31 Mar 2010, Stuart Taylor wrote:

[...]
> Using verbose output I can see the client sending the vars, and if I create some test vars on the client and add them to the SendEnv/AcceptEnv statements in ssh_config/sshd_config, they are preserved in the remote environment, but PATH is not, and defaults to /usr/local/bin:/bin:/usr/bin, which is not very useful in this case.

Take a look at do_setup_env() in session.c
That is where the server sets PATH

Use the --with-default-path= and --with-superuser-path= configure options
to build with the path you want.

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net




More information about the openssh-unix-dev mailing list