* Problems with DEC OSF/1 rdump/rrestore
@ 1993-08-08 0:12 Fred Velijanian
1993-08-08 13:27 ` Casper H.S. Dik
0 siblings, 1 reply; 2+ messages in thread
From: Fred Velijanian @ 1993-08-08 0:12 UTC (permalink / raw)
I have several problems/question with rdump/rrestore on OSF/1 V1.2,
hopefully some may be fixed in V1.3, but I don't have it yet.
We have tape drives on a SUNOS 4.1.3 system which we backup remote
systems to using rdump. I have come across a few differences between
the way rdump/rrestore work between OSF/1 and Ultrix in conjunction
with using the SUN drives. We use a regular account called "dumper"
on OSF/1 & Ultrix to run the backup scripts, rather than the "root"
account.
Major problem:
- OSF/1 rrestore generates the following errors, when run from the "dumper"
account, but works ok if run from "root". rrestore is setuid root,
so I don't believe that it's a permission problem. The command used
was: /usr/sbin/rrestore -tf sun:/dev/exa >> filename
Cannot read single character from socket
rmt_getb(): read(): Address already in use
Communication error in connection to remote peer
Remote restore is aborted.
Minor problems:
- OSF/1 rrestore seems to need to communicate with a similarly named
account on the SUN, and thus an account with the same name with
appropriate .rhosts file needs to be setup on the SUN for this purpose.
OSF/1 rdump and Ultrix rdump/rrestore default to using the "root" account
and thus only /.rhosts needs to be used.
- Any chance of seeing support for username@hostname:/dev/tape type of
file specification for rdump/rrestore on OSF/1? Ultrix doesn't have it,
but I can always hope for OSF/1!
- 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...)
Slight problems:
- OSF/1 rrestore seems to printout the output of the "-t" switch to
the stderr instead of stdout. Thus I need to use a command such as
"rrestore -tf sun:/dev/exa >>& filename" instead of ">> filename".
- 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!).
Overall it seems that OSF/1 rdump works OK, but rrestore has the most
problems.
Thanks for any help.
Fred Velijanian
UC Irvine
fredv@uci.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problems with DEC OSF/1 rdump/rrestore
1993-08-08 0:12 Problems with DEC OSF/1 rdump/rrestore Fred Velijanian
@ 1993-08-08 13:27 ` Casper H.S. Dik
0 siblings, 0 replies; 2+ messages in thread
From: Casper H.S. Dik @ 1993-08-08 13:27 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-08-08 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-08 0:12 Problems with DEC OSF/1 rdump/rrestore Fred Velijanian
1993-08-08 13:27 ` Casper H.S. Dik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox