Morgan Jones on 8 Aug 2006 14:38:00 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] rsh/root


George,

Is there a reason you aren't using ssh?  rsh is picky about small details.

Also, skip the ./*, you will miss dot files and replace the ';' with '&&' so your tar will only start if your cd succeeds.

The 'B' is not necessary in my experience but I don't think it hurts:

So..

tar cf - . | ssh beta "cd /tmp && tar xfB -"

You will need to type a password but I gather that's not an issue in your scenario.

-morgan



George Gallen wrote:
I have two systems (only connected to each other) so there is no security (well very low) risk
for attack from outside the system...(and a pitbull gaurding the keyboard).


system 1 is a RH8.0 and system 2 is a FC 5

I'm trying to copy data from one to the other, keeping the dates intact.

I wanted to use a combo or tar and rsh

I set the hosts.equiv with each others IP's and names
I set the hosts.allow with each other IP's for in.rshd
I set a .rhosts in the /root with +

When I try to execute:

tar cf - ./* | rsh beta '(cd /tmp ; tar xfB -)'

I get a Permission Denied

It works for non-root transfers
I'm trying to get this work for root.

What am I missing?

I don't care if I have to enter a password, I just need to be able to tar over some directories

I'd use ftp, but there are thousands of small files, which tar handles so nicely.

(yes, I know the implications of .rhosts, like I said, they are only connected to each other)



*George Gallen*
Senior Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220

*SLACK Incorporated* -/ Delivering the best in health care information and education worldwide./
_http://www.slackinc.com_




------------------------------------------------------------------------

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug