[4147] in linux-net channel archive
Re: ssh, RedHat 3.0.3, and root
daemon@ATHENA.MIT.EDU (David C Niemi/Administrator/DCLinu)
Thu Aug 22 12:37:04 1996
Date: Thu, 22 Aug 1996 10:34:25 -0400 (EDT)
From: David C Niemi/Administrator/DCLinux/LUGMAN/WAUUG <niemi@wauug.erols.com>
To: David Flood <dcflood@u.washington.edu>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.OSF.3.92a.960821110236.31920A-100000@saul7.u.washington.edu>
On Wed, 21 Aug 1996, David Flood wrote:
> I've got ssh up and running on my network. I like it except.....
>
> When I log in as root at the console, several additional path directorys and
> some other stuff get set correctly as well as a mailcheck is done. But if I
> ssh into the machines, none of this is done. I've looked through all the
> .*rc files and can't seem to find where bash finds the additional stuff.
>
> Anyone got a fix for this stuff?
The problem is that you need login processing (e.g. /etc/profile,
~/.profile) to be performed at the other end. This can be accomplished by
calling bash -login, for example, if a plain shell session is what you
want. For X I prefer to have a "receiver" script I call via ssh which
sets the environment/path and then does whatever I actually wanted done.
David
Niemi@linux.wauug.org 703-810-5538 Reston, Virginia, USA
------ Money talks, but it is wrong half of the time. -----