Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: casper@fwi.uva.nl (Casper H.S. Dik)
Subject: Re: Problems with DEC OSF/1 rdump/rrestore
Date: 8 Aug 1993 13:27:51 GMT	[thread overview]
Message-ID: <242v0n$qlg@mail.fwi.uva.nl> (raw)
In-Reply-To: 2C6444F2.21329@news.service.uci.edu

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


      reply	other threads:[~1993-08-08 13:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-08  0:12 Problems with DEC OSF/1 rdump/rrestore Fred Velijanian
1993-08-08 13:27 ` Casper H.S. Dik [this message]
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