SUMMARY - rdump from BSD to DUnix

From: Blue Moon Network Administrator <root_at_net.bluemoon.net>
Date: Wed, 24 Jan 1996 17:34:48 -0500 (EST)

The origional question was why rdump would fail with an 'rmt not found'
type of error when rdumping from a BSD PC to a DUnix 3.2c machine.
 
The initial Solution to our problem was from Andrew Gallatin
<gallatin_at_isds.Duke.EDU>:

>>>>>>
Blue Moon Network Administrator writes:
>
> I have a PC running FreeBSD in out lan which I would like to back up
> using the rdump utility. No matter how I try to do it it won't fly.

rmt is not being found by the rsh from the FreeBSD machine.

Check root's .cshrc (/.chsrc) on the target machine. Chances are, its
the default /.cshrc, as shipped by Digital:

if ($?prompt) then
        umask 022
        set cdpath = ( /sys /usr/spool )
        set notify
        set history = 100
        set path = ( /sbin /usr/sbin /usr/bin /usr/bin/X11 )
endif

Basically, this doesn't setup *any* path if the shell is not
interactive (that's what the $?prompt test does).

To fix this, you'll need to change it to look like this:

set path = ( /sbin /usr/sbin /usr/bin /usr/bin/X11 )
if ($?prompt) then
        umask 022
        set cdpath = ( /sys /usr/spool )
        set notify
        set filec
        set history = 100
endif

Drew
##############################################################################
# Andrew Gallatin, Computer Project Manager #
# Institute of Statistics and Decision Sciences #
# Box 90251, Duke University, Durham, NC 27708-0251 #
##############################################################################
<<<<<<

The general concensus among the respondents (as well as myself from the
outset basically) was that rmt was truly not being found. My
consternation and kornfewzilization stemmed from the fact that I could
rsh with no problem from another machine on files that WERE in the
default path. I didn't pay enough contention to the .cshrc file or I
would have figured out the path wasn't being set for non-interactive
logins. Silly me.
 
This mail from Jim Belonis <belonis_at_dirac.phys.washington.edu> also
summarizes this bahaviour:

>>>>>>
Sounds like the directory where rmt exists is not the directory where
your PC wants it to be.
You might do the equivalent of
strings rdump | grep rmt
on your PC to see where it thinks rmt should be and put a link there
on the Unix system .

This is a fairly common problem since rdump is often written to have an
explicit path so it doesn't depend on the path provided by rsh.

Belonis
<<<<<<

Guy Helmer <ghelmer_at_alpha.dsu.edu> also provided a litle more insight
some of you may find useful:

>>>>>>
FreeBSD's rdump runs just "rmt" instead of "/etc/rmt" or "/usr/sbin/rmt",
so rmt must be in the path. I don't know if one can get /usr/sbin wedged
in the path of a shell run via rshd, so I just have /usr/bin/rmt
symlinked to /usr/sbin/rmt. Works fine from all my FreeBSD systems...

Guy

Guy Helmer, Dakota State University Computing Services - ghelmer_at_alpha.dsu.edu
<<<<<<<

Right on the money, although I had already used the .cshrc path to make it
work at that point.

Kurt Watkins <watkins_at_chop.swmed.edu> did a little test to check the
relationships between a DUnix box and a Linux box named picard:

>>>>>>
Well I found someone who has used an OSF/1 box on the server side. I'm
including a note she sent. The thing that caught my eye was the path
statement, namely that /usr/sbin needed to be in path. I did a little
experiment to check things out using my Linux box picard, and an OSF/1
box, chop:


picard <4:20pm> 51% su
Password:
picard <16:21:01> 1# rsh -l root chop printenv
HOME=/
SHELL=/bin/csh
PATH=/bin:/usr/bin:
USER=root
picard <16:21:08> 2#


Also:

chop <4:24pm> 26% whereis rmt
rmt: /etc/rmt /usr/sbin/rmt /usr/share/man/man8/rmt.8


I suspect that adding /usr/sbin (or /etc) would get you going. Let me
know if that fixes you up.

Cheers,
K.
____________________________________________________________________

  Kurt Watkins Watkins_at_chop.swmed.EDU
  Howard Hughes Medical Institute Phone: (214) 648-5034
  UT Southwestern Medical Center Fax: (214) 648-5066
  5323 Harry Hines Blvd. Y4.106
  Dallas, TX 75235-9050
<<<<<<

Once again the right track for the problem.

Thanks also to Anthony D'Atri <aad_at_nwnet.net> and Bertrand Hutin
<hb_at_o2tech.fr> as well as anyone who may have also responded whom I may have
overlooked. (I field between 100 and 200 mail messages a day ;)

This group has been terrific for insight and troubleshooting, keep up the
great work gurus!

J. Henry Priebe Jr. President & Network Adminstrator
root_at_net.bluemoon.net Blue Moon Internet Services
sysop_at_bbs.bluemoon.net Blue Moon Online System
http://www.bluemoon.net Try MoonMUD! "telnet mud.bluemoon.net 4000"
Received on Wed Jan 24 1996 - 23:53:05 NZDT

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