Getting dump to remote dump on Solaris

Getting dump to remote dump on Solaris

Post by Victor Ng-Thow-Hi » Fri, 07 Jun 1996 04:00:00



We have a exabyte attached to a Solaris Sparc 20. I am trying to
backup on linux ext2 filesystem using dump0.3 onto the Solaris machine
using a user called diskread.

The dump command works fine for root, but if I login as diskread, I get
the error:

  DUMP: Protocol to remote tape server botched (code "rmt: Command not
  found").
  rdump: Lost connection to remote host.

Even though I made sure .rhosts and setuid root permissions are used on
/sbin/dump. I used strace and found the following problem:

socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
bind(3, {sin_family=AF_INET, sin_port=htons(1023),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EACCES (Permission denied)
close(3)                                = 0
:
write(2, "rcmd: socket: Permission denied\n"..., 32rcmd: socket: Permission
denied
) = 32

So, for some reason diskread does not have permissions to open a socket.

Can anyone give me any help on this?

Regards,
Victor.

 
 
 

Getting dump to remote dump on Solaris

Post by B.A.McCau.. » Fri, 07 Jun 1996 04:00:00



Quote:>The dump command works fine for root, but if I login as diskread, I get
>the error:

>  DUMP: Protocol to remote tape server botched (code "rmt: Command not
>  found").
>  rdump: Lost connection to remote host.

What user are you logging into the Sun as?  Does that user have
execute perssion to the "rmt" program? Do the directory it's in?  Is
it on their PATH?

Quote:>I used strace and found...

...that stracing a setuid program doesn't really give any useful
information because it disables the setuid.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/


 
 
 

1. unix dump: dumped twice to same dumpfile; restore if file displays only last dump


-rw-r--r--    1 root     root     554221568 Nov 22 16:07 /mnt/cc/cc

restore > ls
.:
System.map              grub/                   map
System.map-2.4.8-26mdk  kernel.h                message
boot.0300               kernel.h-2.4.8          os2_d.b
boot.b                  lilo                    us.klt
chain.b                 lilo-graphic/           vmlinuz
config                  lilo-menu/              vmlinuz-2.4.8-26mdk
config-2.4.8-26mdk      lilo-text/

That's a mighty big filesize for /boot which i know to be 23 MB.
So i must assume that the first dump (of / ) is still there.
But restore only lets me see the latest dump (on top of that "layer")

Anyone ever encounter this and recover the first dump?

cave jabberwockum

2. Werid 5.0.5 Problem

3. single-user dumps, and remote dumps (again)

4. Telepath Modem problems...

5. dump - what gets dumped

6. How to setup the ppp dialup to ISPs in UNIX(Solaris 2.5)

7. using dump to remote solaris 2.4 box

8. ypserv refuses connections

9. Getting core dump on Solaris 5.5.1

10. dump on HP-UX to tape drive on remote Solaris system

11. remote dump with SunOS 4.1.x and Solaris 2.x systems

12. Multi-volume remote dump to Solaris ??

13. remote dump from Solaris to AIX