Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 1997 00:48:26 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Mark D Smith <msmith@revolution.3-cities.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: rdump problems with ksh
Message-ID:  <Pine.BSI.3.94.970211004615.923S-100000@localhost>
In-Reply-To: <199702100718.XAA04071@revolution.3-cities.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970211004615.923S-100000>