Where does rsh pick up its environment?

From: Patrick O'Brien <pobrien_at_draco.harvard.edu>
Date: Fri, 17 Nov 1995 16:02:37 -0500 (EST)

Greetings

Given a /.profile on a remote node of

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

and given that the remote node has a /.rhosts that includes
the local node, the command

rsh remote_node env

run from the local node returns

HOME=/
PATH=/bin:/usr/bin:
SHELL=/bin/sh
USER=root

rsh -l root remote_node env gives the same results.

Can anyone tell me why rsh doesn't pick up the path specified in /.profile,
or where it does pick up the path of /bin:/usr/bin from? Both
nodes are DU 3.2C.

Regards,

Patrick O'Brien
Received on Fri Nov 17 1995 - 22:23:36 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT