From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,54ba1bc1e04e8a32 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,54ba1bc1e04e8a32 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-08 06:55:29 PST Xref: gmd.de comp.sys.dec:9349 comp.unix.osf.osf1:791 Path: gmd.de!xlink.net!news.dfn.de!darwin.sura.net!europa.eng.gtefsd.com!uunet!mcsun!sun4nl!fwi.uva.nl!casper From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Subject: Re: Problems with DEC OSF/1 rdump/rrestore Date: 8 Aug 1993 13:27:51 GMT Organization: FWI, University of Amsterdam Message-ID: <242v0n$qlg@mail.fwi.uva.nl> References: <2C6444F2.21329@news.service.uci.edu> NNTP-Posting-Host: adam.fwi.uva.nl Keywords: rdump rrestore fredv@abba.acs.uci.edu (Fred Velijanian) writes: >- OSF/1 rdump has difficulty opening the /dev/rrz* devices even if it's > been setuid'd to root. I still have to change the file protections of > the /dev/rrz* files so that it can be opened by the account that > runs the "rdump". Anyone know why? On Ultrix all I have to do is setuid > /etc/rdump and it's able to open the devices. (In fact I have the > same situation with SGI systems...) Usually the reason for rdump to be set-uid is to allow it to grab the reserved ports it needs to do the rcmd(3) with the remote host. Rdump programs written with that in mind will not use the root uid to access the devices. This is a good thing because you don't want random users running rdump. One solution to make the disk devices accessible to non-root users is to use the group protection bits on the devices. >- OSF/1 rrestore expects the SUN "rmt" to be in /usr/sbin/rmt, so I've made > a link on the SUN to /etc/rmt. (Interestingly enough OSF/1 rdump > checks both /usr/sbin and /etc for SUN rmt!). This is one of the common problems with the rsh mechanism. Rdist will usually try to run /usr/ucb/rdist -Server on the remote side, but some vendors moved rdist around. This is caused by the broken behaviour of rsh. If you use it you can make no asumptions about the environment variables or shell syntax you can use. Instead people assumed that certain programs would live in certain places. >Overall it seems that OSF/1 rdump works OK, but rrestore has the most >problems. A problem with restore is that in general it has to be run as root, which is soemthing you don' want to allow via .rhosts. Often I long for a rsh based intercace that allows root not only to specify the remote user, but also the local user. Or that the programs that used rcmd(3) could fall back on rexec(3). Casper