Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: glenn@cs.uwa.oz.au (Glenn Huxtable)
Subject: Re: rdump
Date: Wed, 18 Aug 1993 07:22:02 GMT	[thread overview]
Message-ID: <glenn.745658522@chuditch> (raw)
In-Reply-To: 1993Aug5.124400.1240@vms.huji.ac.il

In <1993Aug5.124400.1240@vms.huji.ac.il> ami@shum.cc.huji.ac.il (Ami Kleinman) writes:


>I'm trying to use rdump to backup my alpha 3000 on a Sun3 which is
>connected to a tape drive.  This Sun3 is used to backup all of the
>machines we have, including Suns, Decstations, MIPS, etc.

>I've checked the links on the sun and they seem correct:

>noa(1)% ls -l /etc/rmt
>lrwxrwxrwx  1 root           12 Aug  5 11:28 /etc/rmt -> /usr/etc/rmt*
>noa(2)% ls -l /usr/sbin/rmt
>lrwxrwxrwx  1 root            8 Jul 28 09:57 /usr/sbin/rmt -> /etc/rmt*
>noa(3)% ls -l /usr/etc/rmt
>-rwxr-xr-x  1 root        16384 Oct 14  1990 /usr/etc/rmt*


>I've also tried using rdump from the alpha to a decstation runing ULTRIX4.2
>with no success.

>Any help would be appreciated.



>Ami

A few things to be wary of. Firstly, OSF's "rdump" uses the rcmd library call
to execute /usr/etc/rmt on the remote machine. This means that rdump *must*
run as root, as only root can call rcmd. I'm not sure, but I think Sun's rdump
uses "rsh" to run the remote rmt, which means you can run rdump as any user
with privilege to dump disks and run remote rmt's.

Another gotcha (not to do with your problem) is that OSF's rdump *knows*
the string /dev/nrmt* means non-rewinding magtape. If your remote tape is
a SCSI tape (/dev/rst*) and you ask it to dump to the non-rewinding SCSI
tape (/dev/nrst*) then rdump will manually rewind the tape anyway. You can tell
it to nick off (don't rewind the tape) with the -N option.

I consider both these problems to be cases of poor design. There is no reason 
why dump should need know about tape device names (and their implied meanings) 
and there is no (good?) reason why it should only allow root to run rdump, 
other filesystem and network protections should be sufficient for that purpose.
dump is enough of a pain as it is, why did OSF need to break it more?

I hope that helps.

Glenn Huxtable
-- 
Email  - glenn@cs.uwa.edu.au      ,-_|\                          glenn huxtable
phone  - +61 9 380 2878          /     \               dept of computer science
fax    - +61 9 380 1089          *_,-._/        university of western australia
                                      v


  reply	other threads:[~1993-08-18  7:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-05 12:43 rdump Ami Kleinman
1993-08-18  7:22 ` Glenn Huxtable [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-04-18  4:00 rdump Jerry Waldorf
1995-04-21  4:00 ` rdump Codex Chen
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox