cancel
Showing results for 
Search instead for 
Did you mean: 

allow all user to rcp

 
Highlighted
Frequent Advisor

allow all user to rcp

I have two RH server , I would like all users can use rcp to copy files to each other , now I need to add all user ID to .rhosts , I tried add + + to it but not work , can advise what can I do if I want all use can rcp file to each server but not add all user id to .rhosts manually ? thx

p.s. this is only testing server , please ignore the security issue.
8 REPLIES 8
Highlighted
Honored Contributor

Re: allow all user to rcp

> [...] RH server [...]

Not a very detailed description of anything.

> [...] I tried add + + to it but not work ,
> [...]

You tried to add what to _what_? A ".rhosts"
file in a user's home directory is good for
only that user, not for all users.

I don't use it, but you might look at:

man hosts.equiv
Highlighted
Frequent Advisor

Re: allow all user to rcp

Thx reply

I mean I added + + to ~edp_user/.hosts , my intended result is all user can rcp file to this server via the user ~edp_user , but it is not work , I tried other server is ok , only this serer is not ok .

Thanks
Highlighted
Honored Contributor

Re: allow all user to rcp

> I mean I added + + to ~edp_user/.hosts [...]

Do you mean ".hosts" or ".rhosts"?

> [...] A ".rhosts"
> file in a user's home directory is good for
> only that user, not for all users.

Still true.

> [...] you might look at:
>
> man hosts.equiv

Still true.

> [...] I tried other server is ok , only
> this serer is not ok .

Huh?

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
Highlighted
Frequent Advisor

Re: allow all user to rcp

the reply ,

man hosts.equiv do not show how to setup all user can do rcp without adding all user to .rhosts.

the command I use is rcp file edp_usr@remoteserver:/tmp


Thanks

Highlighted
Honored Contributor

Re: allow all user to rcp

> man hosts.equiv do not show how to setup
> all user can do rcp without adding all user
> to .rhosts.

Really? Normally that's _exactly_ what it
shows.
Highlighted
Valued Contributor

Re: allow all user to rcp

This is called trust relationships which can expose server security...

edit file /etc/hosts.equiv

hp01 user1
+ user2

This will allow user1 from hp01 remote machine and user2 from all remote machines.

Now chmod 600 /etc/hosts.equiv to prevent other users from modifying it.
I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Highlighted
Frequent Advisor

Re: allow all user to rcp

thx reply ,

if I add + + to /etc/hosts.equiv , is that mean all user from all server can remote copy file ? Thx
Highlighted
Honored Contributor

Re: allow all user to rcp

> if I add + + to /etc/hosts.equiv , [...]

Wouldn't it be faster and easier to try it
than it is to ask? Which method would be
more reliable?

man hosts.equiv

What does it say there?