From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076327921454.tru64-unix-managers.marc@archive.invalid> From: Blue Moon Network Administrator Date: Wed, 24 Jan 1996 22:34:48 +0000 To: tru64-unix-managers Subject: SUMMARY - rdump from BSD to DUnix X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076327921454 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 : >>>>>> 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 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 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@alpha.dsu.edu <<<<<<< Right on the money, although I had already used the .cshrc path to make it work at that point. Kurt Watkins 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@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 and Bertrand Hutin 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@net.bluemoon.net Blue Moon Internet Services sysop@bbs.bluemoon.net Blue Moon Online System http://www.bluemoon.net Try MoonMUD! "telnet mud.bluemoon.net 4000"