System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: rcp not working for oracle user

 
SOLVED
Go to solution
Super Advisor

rcp not working for oracle user

Hi guys,
i am not able to give rights for oracle user to give rcp rights from one server to another.

server A:-> rx4640,8gb RAM,11iv2
serverB :-> rx4640,8gb RAM,11iv2

server A(ge1) :-> .rhosts file contains
ge1 root
ge2 root
10.x.x.x root
+ ge2 oracle
+ ge1 oracle

server B (ge2):-> .rhosts file contains
ge1 root
ge2 root
10.x.x.x root
+ ge2 oracle
+ ge1 oracle

I m able to rcp as root user with no hassles ,but for oracle user m getting remshd:Login incorrect message...

I have also tried the /etc/hosts.equiv file ,but no use with hostname username as syntax...

Also
-r-sr-xr-x 1 root bin 140124 Oct 28 2005 /usr/bin/rcp

Thanx in advance.....

7 REPLIES 7
Respected Contributor
Solution

Re: rcp not working for oracle user

Hi:

Do you have created the .rhosts file under the home directory of oracle user?

Regards;

J. Bravo.
Honored Contributor

Re: rcp not working for oracle user

Syntax in rhosts is:
host user

and when you type:
+ ge2 oracle
that means - user ge2 from any hosts.

Replace it with:
ge2 oracle

regards,
ivan
Trusted Contributor

Re: rcp not working for oracle user

Does the oracle user exists on both servers
Acclaimed Contributor

Re: rcp not working for oracle user

Where is this .rhosts file? I the oracle home directory?

Why do you have: + ge1 oracle
Instead of: ge1 oracle
"+" provides a wildcard for a host or name, not an extra field.
Trusted Contributor

Re: rcp not working for oracle user

you may can follow these steps:-



Before you can use rcp to copy files to or from a remote host, the remote host must be
configured in one of the following methods:
â ¢ You must have an account on the remote host with the same login name as your
local login name and the name of your local host must be in the remote hostâ s
/etc/hosts.equiv file.
â ¢ You must have an account on the remote host, and the name of your local host
and your local login name must be in a .rhosts file in your home directory on
the remote host.


Creating a $HOME/.rhosts File on a Remote Host
If you have an account on a remote host, you can set up the account so that you can
log into the remote host without specifying your remote login name and password.
Using rlogin 17
To create a $HOME/.rhosts file on the remote host, perform the following steps:
1. If you do not know where your home directory is on the remote host, log into the
remote host and issue the following command:
echo $HOME
2. Create a file called .rhosts in your home directory on the remote host, if it does
not already exist, and add the following line to it:
your_local_host's_name your_local_login_name
3. Issue the following command to ensure that you are the owner of the remote
.rhosts file:
ls -l .rhosts
4. Issue the following command to protect your remote .rhosts file so that only
you can read it:
chmod 0400 .rhosts
5. Move to the parent directory of your home directory, and issue the following
command to protect your remote home directory by restricting write permission
to other users (that is, group and others):
chmod 0755 your_home_directory


Regards
Prasanth
Super Advisor

Re: rcp not working for oracle user

Hi Bravo,
ivan,
prasanth,
dennis,
TYhank u very much for ur valuable suggestion,how silly of me....should have struck me earlier only....

Anyways thank u very much....problem solved after creating .rhosts file in oracles home directory.............

Points given...............
Trusted Contributor

Re: rcp not working for oracle user

just a quick note on permissions also:

when using root to rsh / rcp etc the system will always look at the root .rhosts file.

For a user config then the system will first look into /etc/hosts.equiv then if no entry then it will search ~/.rhosts

the permissions should be 600 on both files otherwise you are leaving yourself open to security risks and also you may find that it still wont work.

sorry for jumping in at the end but I hope this helps.

Chris.
hello