Operating System - Linux
1828340 Members
3304 Online
109976 Solutions
New Discussion

getting permission denied when rcping

 
Matt Shaffer_1
Regular Advisor

getting permission denied when rcping

I have 2 RHE3 machines and I am trying to rcp files from one to the other. I am getting permision denied when I rcp or rsh. I am able to rlogin. I've checked /etc/hosts, hosts.equiv, hosts.allow and /root/.rhosts. What am I doing wrong? Thanks
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: getting permission denied when rcping

You should use scp!!

If you can to sync machines you can also use rsync.

Anyway, name resolution is important when you use r commands.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rick Garland
Honored Contributor

Re: getting permission denied when rcping

Which user are you invoking the rcp command? To what system:filesystem are you going to?

Check to ensure all permissions/ownerships are compatible.

Also, try to start using scp instead. These are standard install Linux tools. Ready to go.
Steven E. Protter
Exalted Contributor

Re: getting permission denied when rcping

tools like rcp rsh rely not on actual usernames but on numeric user id's.

If the numeric user id, available from the id command or/etc/passwd don't match you can get permission denied problems.

tail -f /var/adm/syslog/syslog.log

Try again, report results.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matt Shaffer_1
Regular Advisor

Re: getting permission denied when rcping

. think i had to add rsh, etc to /etc/securetty. i was very at this 5+ years ago.