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

Re: [cobalt-developers] How can I rcp from a cron?



I'm not sure what scp is:

 csh66: rcp
 usage: rcp [-p] f1 f2; or: rcp [-rp] f1 ... fn directory
 csh 67: scp
 scp: Command not found

Do you mean ssh? I'm trying to use that with the copy itself (ssh instead o rsh)..

I'm actually using perl mod File::remote to do the copy- but it uses the .rhosts file for authen.

Why is using rcp from root courageous? What are the risks- I'm not transmitting any passwords.

Thanks for the reply!
-PG

From: "Michael Zimmermann" <zim@xxxxxxxx>
Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Subject: Re: [cobalt-developers] How can I rcp from a cron?
Date: Wed, 5 Jul 2000 08:14:38 +0200

From: sara starre <perl_rocks@xxxxxxxxxxx>
> If I execute a perlscript to rcp to the remote node, logged in as userx,
it
> works great. If I make a crontab entry as the same user, I get permission > error. I checked crond and its running as root, so I thought addding root
> to the .rhosts would fix it.

Cron is _allways_ running as root.

You like scating on thin ice, using rcp and trying that as root! Very
couragious.
Why don't you 'su' to userx in your crontab-procedure and then try the rcp?

And what about using scp and some better authorization sheme than .rhosts?

just my 1.5 cents
Michael


_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com