home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!darwin.sura.net!mips!odin!fido!zola!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Subject: Re: Is there a 'dump' program for IRIX?
- Message-ID: <ntt8kg0@zuni.esd.sgi.com>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- References: <31518@adm.brl.mil> <1992Jul24.201601.14227@eng.umd.edu> <nnbhtn4@zuni.esd.sgi.com> <1992Jul29.171432.8977@unixg.ubc.ca>
- Date: Wed, 29 Jul 92 23:03:05 GMT
- Lines: 58
-
- In <1992Jul29.171432.8977@unixg.ubc.ca> laplante@ocgy.ubc.ca (Denis Laplante) writes:
-
- | olson@anchor.esd.sgi.com (Dave Olson) writes:
- | >All 4.0 IRIX systems come with dump/restore, and there is an
- | >(unsupported) version floating around somewhere for 3.3.
- |
- | Changing the subject slightly, I would like to draw attention on two
- | differences between dump under IRIX and the BSD and Sun versions.
- |
- | 1- It counts blocks of 1024 bytes, not 512 ! For du and df, the IRIX versions
- | count blocks of 512 bytes. It seems like a lot of trouble just to to be
- | different from SunOs :-)
-
- Don't know about SunOS, but I'm pretty sure we started from the standard
- BSD 4.3 sources. I don't think we changed the block size calculations.
-
- | 2- Under IRIX dump is not suid:
- | Under SunOs 4.1.2
- | -rwsr-sr-x 1 root tty 57344 Oct 23 1991 /usr/etc/dump*
-
- Why in gods' name would you want dump to be setuid (and would you trust
- it to do the right thing ;) )?
-
- | This causes the following problem when not running as root (but with
- | appropriate group read permission on the raw disk device file):
- |
- | dump 0f red:/dev/null /
- | rcmd: socket: Permission denied
- | DUMP: Couldn't execute /etc/rmt on red
-
- /dev/null isn't a tape device, so the remote tape library won't work
- with it. What kind of a machine is red? None of tar, bru, cpio, or
- mt are setuid root, and they all work just fine with remote tape
- to most of the systems I've tried (including Suns). You might want
- to try guest@red:/dev/null and see if that works better, although I
- would still expect it to fail because it isn't a tape drive.
-
- | Is there a reason not to make dump suid root? It would then allow the
- | dump program to run as a less priviledged user than root, and reduce
- | the need for /.rhosts remote root login permission. For example I
- | could have the host with the tape (red) call up host blue using
- | something like:
- | rsh blue /etc/dump 1uf red:/dev/nrtapens /usr
-
- Well, if you want to allow just anybody access to every file on
- your whole system, I have no problem with it, but it does seem
- just a teensy bit insecure ;)
-
- How about:
- rsh root@blue /etc/dump 1uf guest@red:/dev/nrtapens /usr
-
- or sys, or some other id that you want to trust via the rhosts
- mechanism. Any user that is group sys should do the job, if you
- change your /dev/*dsk permissions to have group sys read access.
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-