Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permission denied when using rcp

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi All

I can use the rcp command fine as root however when i try it as user oraprod i receive rermission denied.

I have added the following line to .rhosts and /etc/hosts.equiv on the box i am trying to copy to but still no joy. Any CLUES?!?!

root@sunfnclunx001#more /etc/hosts.equiv
sundevlunx003 oraprod

root@sunfnclunx001#more .rhosts
+ +
sunswrdunx001.sunterra.com root
sunowebunx004
sunbcpsunx001
sunowebunx003
sunowebunx006
sunowebunx005 root
sundevlunx003 oraprod
 
Edit /.rhost file on both systems.
Ex: hostname.domain.com root

If you are doing rcp from x system to y system.

edit /.rhosts file on both systems

in x system:

vi /.rhosts

y.domain.com root

in the y system

vi /.rhosts
x.domain.com root

You don't have to edit host.equiv

hope this helps.
 
the .rhosts must be in the home directory of the user issuing the rcp. Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
yes, unless you are running NIS or NIS+ or LDAP or any other network authentification. Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
Make sure rlogin and rsh is setup within the /etc/pam.conf
 
Hi, all.

Five detailings:
1: the .rhosts must be in the home directory of the user issuing the rcp (400 privileges) in remote server (only); the file /etc/hosts.equiv is no necesary.
2: name in .rhosts must be the result of command 'uname -n'.
3: in /etc/inetd.conf must be able the service 'rsh'; rlogin is no necesary setup.
4: in /etc/pam.conf (solaris9), must be able a line 'rsh auth sufficient pam_rhosts_auth.so.1'.
5: if exist a firewall between them, must be able port 514_tcp to server1 to server2 or viceversa.

Manuel Agudo
España
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top