From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9b5b39a4bc51895d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-18 01:50:20 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!chuditch!glenn From: glenn@cs.uwa.oz.au (Glenn Huxtable) Subject: Re: rdump Message-ID: Sender: usenet@bilby.cs.uwa.edu.au Nntp-Posting-Host: chuditch Organization: Dept. Computer Science, University of Western Australia. References: <1993Aug5.124400.1240@vms.huji.ac.il> Date: Wed, 18 Aug 1993 07:22:02 GMT 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