Operating System - HP-UX
1839522 Members
2683 Online
110146 Solutions
New Discussion

rcp error as diff user but rlogin/remsh works

 
SOLVED
Go to solution
Eric Buckner
Regular Advisor

rcp error as diff user but rlogin/remsh works

Hi I am a bit stumped. I am working on developing a routine for our project managers to push files out from our development server to a staging area on our production server. While I know ssh/scp will be a better long term solution, this is not meant to be a long term solution. We are implementing a revision control package that will deal with this going forward. Anyway here is my problem:

The following commands work:

rlogin -l produser prodhost
remsh prodhost -l produser "command"

However, this command doesnt:
rcp file produser@prodhost:/home/produser/file

This fails w/ a Permission denied.

The .rhosts file for produser on prodhost has entries for the devhost devusers and is owned by root w/ perm of 444.

Any ideas?
Time is not a test of the truth.
2 REPLIES 2
Dave Hutton
Honored Contributor
Solution

Re: rcp error as diff user but rlogin/remsh works

Whats the permissions of the actual file you are trying to pull back? Are they owned by produser?

Being that you can rlogin/remsh works your file permissions are suspect. They all use the same r services.

Dave
Eric Buckner
Regular Advisor

Re: rcp error as diff user but rlogin/remsh works

Thanks Dave! Man do I feel stupid. I should have caught that. It turns out that the produser's home directory was also owned by root......

Time is not a test of the truth.