From owner-freebsd-questions Tue Feb 11 00:48:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA08639 for questions-outgoing; Tue, 11 Feb 1997 00:48:30 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA08634 for ; Tue, 11 Feb 1997 00:48:28 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id AAA01521; Tue, 11 Feb 1997 00:48:26 -0800 (PST) Date: Tue, 11 Feb 1997 00:48:26 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Mark D Smith cc: freebsd-questions@FreeBSD.ORG Subject: Re: rdump problems with ksh In-Reply-To: <199702100718.XAA04071@revolution.3-cities.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 9 Feb 1997, Mark D Smith wrote: > Greetings, > > I'm still having problems with rdump. I have a link to rmt in my > /etc direcory, and I've attached (text only, not mime) the output from > rsh env and the /etc/profile and the modes for /etc/rmt. > Anyway, I still get ksh: rmt: not found. If I change my default shell > to csh then it works. So, how do I get ksh to get /sbin into it's > path when called via rsh?!? See below. You need to move your PATH lines into .login or .profile. > > Thanks > > root$ ls -aFql /etc/rmt > lrwxr-xr-x 1 root wheel 13 Feb 9 22:38 /etc/rmt@ -> /usr/sbin/rmt > > root$ rsh mark env > _=/usr/bin/env > PATH=/usr/bin:/bin You need to fix this! > SHELL=/usr/local/bin/ksh > USER=root > HOME=/root > > root$ cat /etc/profile > # System-wide .profile file for sh(1). sh == ksh??? > # Uncomment this to give you the default 4.2 behavior, where disk > # information is shown in K-Blocks > BLOCKSIZE=K; export BLOCKSIZE > (snippage) > PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games This should be in your .profile in your home directory. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major