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

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



My remote host has .rhost set up with

  sourcehostdomain root
  sourcehostdomain userx

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 addeding root to the .rhosts would fix it.

When the rcp is done from the prompt the system message log looks like this:

Jul 4 20:59:02 node3 pam_rhosts_auth[21831]: allowed to userx@xxxxxxxxxxxx as usery Jul 4 20:59:02 node3 PAM_pwdb[21832]: (rsh) session opened for user usery by (uid=0)

But on the fails I only get:

Jul 4 20:59:02 node3 PAM_pwdb[21830]: (rsh) session opened for user usery by (uid=0)

(the allowed part isnt there).

Can someone tell me what user I need to add to ./rhosts to allow cron to rcp to this node?

Thanks!

PerlGirl

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