From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter C. Chapin" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: ksh environment for rsh/ssh access? Date: Sat, 14 Dec 2002 07:22:53 -0500 (EST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1039868612 15874 80.91.224.249 (14 Dec 2002 12:23:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2002 12:23:32 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18NBKM-00047m-00 for ; Sat, 14 Dec 2002 13:23:30 +0100 Original-Received: (qmail 15188 invoked by uid 5); 14 Dec 2002 12:23:31 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 15179 invoked by uid 49493); 14 Dec 2002 12:23:31 -0000 Original-Received: from pchapin@ecet.vtc.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.443066 secs); 14 Dec 2002 12:23:31 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 14 Dec 2002 12:23:31 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H73000PSZR396@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 14 Dec 2002 07:23:30 -0500 (EST) Original-Received: from midnight.ecet.vtc.edu (midnight.ecet.vtc.edu [155.42.13.3]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H730064HZQGOD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sat, 14 Dec 2002 07:23:05 -0500 (EST) Original-Received: (qmail 451798 invoked by uid 201); Sat, 14 Dec 2002 12:22:53 +0000 Original-Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; Sat, 14 Dec 2002 12:22:53 +0000 Original-To: Tru64 Unix Managers Xref: main.gmane.org gmane.os.tru64.managers:2735 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2735 I received a reply from Lester Petrie pointing out that OpenSSH, at least, reads a file $HOME/.ssh/environment to learn what should be in the initial environment of the shell it creates during a remote login. I put my definition of PVM_ROOT into that file and all is well. Peter Original question: I'm attempting to make my Tru64 (v5.1A) system part of a PVM virtual machine. The PVM console on a different computer attempts to start PVM on my Tru64 system via rsh/ssh (I've configured it to use ssh). PVM requires an environment variable PVM_ROOT to be set before it will function properly. My problem is that when I use ssh to invoke a command on the Tru64 system, PVM_ROOT is not set and I can't figure out how to set it. Note that I'm using ksh on the Tru64 system. For example, from a remote system: $ ssh mytru64system.vtc.edu set yields the environment seen during remote command invocation. It is definitely not the environment set up by my /etc/profile, $HOME/.profile, or $HOME/.kshrc scripts. This makes sense because, according to the manual page for ksh, only the login script reads /etc/profile and $HOME/.profile. It's in $HOME/.profile where I set ENV causing $HOME/.kshrc to be read. So my question is: just where is ksh getting the "rudimentary" environment that I see when I issue the command above from a remote host? It seems like I need to add either ENV or PVM_ROOT to this rudimentary environment. TIA Peter