Operating System - Tru64 Unix
1832284 Members
2405 Online
110041 Solutions
New Discussion

Re: command rcp:Permission denied

 
chenbin_1
Occasional Advisor

command rcp:Permission denied

when i used the rcp command ,i getted the
permission denied information
i have two machines ,for example A and B,and
their hostName is also called A and B,
first ,in host B ,i modified /etc/host.equiv file and
add A in it and saved,
then in host A ,i used blew command:
rcp /tmp/aFile B:/tmp/bFile
but it wasn't worked and showed Permision denied,
why?
7 REPLIES 7
Dmitry Timoshenko
Frequent Advisor

Re: command rcp:Permission denied

Hi,

Please, specify user, who received such a mistake.
Also, record from /etc/hosts.equiv will be welcome.

Correct permission for /usr/bin/rcp file is -rws--x--x. Please, check it.

Best regards,
Dmitry.
Mobeen_1
Esteemed Contributor

Re: command rcp:Permission denied

chenbin,
As suggested in the post earlier, make sure that your permissions on the rcp binary are set as indicated.

Alternatively let us know the user who is doing this and also the permission on the rcp binary

regards
Mobeen
Ralf Puchner
Honored Contributor

Re: command rcp:Permission denied

all your suggestions are documented within the man page of rsh and this is the first show-stopper within troubleshooting. So it must be another problem...
Help() { FirstReadManual(urgently); Go_to_it;; }
Joris Denayer
Respected Contributor

Re: command rcp:Permission denied

Hi,

Here some hints.

If you are giving a r-command as root, it will not check hosts.equiv.
For root, you must modify the /.rhosts file.

As Ralf said, have a look in the manpage of rcp, more exactly in the Basic Connection part.

Did you add the full qualified hostname in the hosts.equiv file ?

Rgrds

Joris
To err is human, but to really faul things up requires a computer
chenbin_1
Occasional Advisor

Re: command rcp:Permission denied

i run it using root,it's no works yet!
Muthukumar_5
Honored Contributor

Re: command rcp:Permission denied

Hai,

If we want to use r* commands with out passwd, use $HOME/.rhosts file.

If you are trying for root users,

B - /.rhosts
A
or use + instead of A to give access to all machines from their root users

chmod 400 /.rhosts

A # remsh B hostname
You will get the hostname of B
If it is working then,

A # rcp localfile B:/tmp/remotefile
It will be succeed.






Easy to suggest when don't know about the problem!
Ann Majeske
Honored Contributor

Re: command rcp:Permission denied

Just to complicate things, for V5.1A with the ssh kit installed or V5.1B with ssh enabled, the r* commands are replaced by the equivalent ssh commands. So, if you have ssh installed/configured you need to check your ssh configuration.

Ann