LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2003, 01:31 PM   #1
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Rep: Reputation: 15
Unhappy Backing up solaris files on linux server


I want to backup file systems /dev/dsk/c0t1d0sX (where X=0,3) from my Sun workstation running Solaris 7 onto a tape drive /dev/st0 on a Dell server running Red Hat 7.2. Both systems are on a LAN here in my home. What is the appropriate command? The Sun has root and user login privileges on the Dell using either ssh or telnet.

I first tried the following command on the Sun:

ufsdump 0ucf root@dell:/dev/st0n /dev/dsk/c0t1d0s3

I got the response:

DUMP: dell: Connection timed out
DUMP: Cannot connect to tape host 'dell'
DUMP: The ENTIRE dump is aborted.

Then I tried the following command:

ufsdump 0ucf - /dev/dsk/c0t1d0s3 | ssh dell dd of=/dev/st0n

The dump started, but intermingled with the dump information, the Dell asked for a password. I tried to type it in, but was unable to do so. This time the message said something about a "broken pipe" and "The ENTIRE dump is aborted".

Then, on the Dell, I put the following lines into the /etc/ssh/ssh_config file (before the Host * entries), and restarted ssh, in the hopes that I could keep the Dell from insisting on a password, but to no avail.

Host my-sun-machine
BatchMode yes
PasswordAuthentication no

The dell is still looking for a password, which I cannot seem to enter.

Any suggestions would be appreciated.
 
Old 09-20-2003, 08:27 AM   #2
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
If I remember, on monday I'll look for my script back in the office and post it.
 
Old 09-23-2003, 09:30 AM   #3
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Original Poster
Rep: Reputation: 15
Dear Pablo,

Just a gentle reminder to post your script for dumping files from Sun to a Linux server.

Best wishes,

Peter
 
Old 09-24-2003, 07:56 AM   #4
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
Yeah:

Please note, for this to work, you have to allow "shell" service in inetd.conf on the remote machine, and temporarily allow .rhosts

Substitute 10.32.8.58 with the IP of the linux iron with the DAT tape.

ufsdump 0f 10.32.8.58:/dev/st0n /dev/rdsk/c0t0d0s0 >>/tmp/dump.out 2>&1

ufsdump 0f 10.32.8.58:/dev/st0n /dev/rdsk/c0t0d0s7 >>/tmp/dump.out 2>&1
 
Old 10-04-2003, 07:17 PM   #5
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Original Poster
Rep: Reputation: 15
Hi Everybody,

Sorry I haven't gotten back to this thread for a while. My Linux server has had memory failures again. So, I was unable to work on this problem.

Could someone help me with pablob's advice "you have to allow 'shell' service in inetd.conf on the remote machine and temporarily allow .rhosts".

By remote machine, I believe pablob means the Linux server that has the tape drive that I want to use to backup the Sun files. It appears to have 'shell' service turned on, since I find the following entry in /etc/inet/inetd.conf:

shell stream tcp nowait root /usr/sbin/in.rshd in.rshd

Is that what pablob suggests?

Regarding "temporarily allowing .rhosts", there is no .rhosts file. How can I set one up, and what do I have to write in that file?

Thanks for your interest,

Peter
 
Old 10-05-2003, 07:09 AM   #6
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
1.- Inetd & shell: Yes. You're OK.
2.- rhosts:

From man rhosts:

NAME
rhosts, hosts.equiv - trusted remote users or hosts

SYNOPSIS
~user/.rhosts
/etc/hosts.equiv

DESCRIPTION
The per user .rhosts and the per system hosts.equiv files can be used to allow users to use rlogin or rsh without a password. The remote login services first check the system wide /etc/hosts.equiv file and then the ~user/.rhosts of the intended user. Both files contain lines of one of two forms:

host
host ruser

The first form tells that any user from host is allowed to login to this system under the same name. The second form allows ruser from host to login.
The .rhosts file is checked to be owned by user or root, and only its owner may be able to write it.


SO:

Create these two files (/etc/hosts.equiv & /root/.rhosts or /etc/.rhosts ) and place inside this line:

+ +


YES. It's a plus, then a tab and then another plus.

When you end backup DELETE THIS TWO FILES IMMEDIATLY
Why ? Security risk. Open doors.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux clients, Solaris NFS server wiskic10_4 Linux - Networking 5 07-05-2006 01:56 AM
Backing up remote Linux Server to Local Win2KPro CD-RW over SSH McK66 Linux - General 3 06-08-2004 09:05 PM
Backing up files on Windows boxes to Linux thosm Linux - Software 1 04-08-2004 06:36 PM
solaris to linux x-server? mjenkins Linux - Networking 3 10-27-2003 08:43 AM
Backing up Linux to a remote server! DigiCrime Linux - General 5 12-10-2002 03:41 AM


All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration