Operating System - HP-UX
1823424 Members
2569 Online
109655 Solutions
New Discussion юеВ

Re: .rhosts for all users.

 
brian_31
Super Advisor

.rhosts for all users.

We have an application requirement that requires .rhosts for all users, so that they have to copy a particular user file to the other machine(for the same user). They have to use rcp. The question is is there a way to get around without his?

Thanks
Brian.
12 REPLIES 12
Shahul
Esteemed Contributor

Re: .rhosts for all users.

Hi

U put host.equiv file in /etc directory. This will act as system wide .rhosts.

Follow this

#cd /etc
#cp hosts hosts.equiv

Best of luck
Shahul

Patrick Wallek
Honored Contributor

Re: .rhosts for all users.

You can use the /etc/hosts.equiv file. The format of this file is the same as the .rhosts file. For more info do a 'man hosts.equiv'.
Helen French
Honored Contributor

Re: .rhosts for all users.

You can consider using the file /etc/hosts.equiv. This file is for global usage instead of .rhosts (user specific).

# man 4 hosts.equiv
Life is a promise, fulfill it!
brian_31
Super Advisor

Re: .rhosts for all users.

Hello:

The question was to get around w/o rservices and still be able to copy across machines.

Thanks
Brian.
PIYUSH D. PATEL
Honored Contributor

Re: .rhosts for all users.

Hi,

Use the /etc/hosts.equiv file instead of .rhosts.

Piyush
Shahul
Esteemed Contributor

Re: .rhosts for all users.


Hi

If ur application require this, then no way. U have to have either $HOME/.rhosts or /etc/hosts.equiv.

If U need .rhosts only then create model .rhosts then

Go to home file system ( I assume that it is /home)
#cd /home
#for i in *
do
cp .rhosts $i
done

Best of luck
Shahul
Patrick Wallek
Honored Contributor

Re: .rhosts for all users.

If you wish to NOT use r-services you could always try FTP. An even better solution would be to install SSH on both machines and let them do an sftp or scp since this will be much more secure.

HP SSH:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
A. Clay Stephenson
Acclaimed Contributor

Re: .rhosts for all users.

If that's the case then the answer is NO.

A Plan B. might be to use the automounter so that no matter what machine the user is on; it's actually the same file.

If it ain't broke, I can fix that.
PIYUSH D. PATEL
Honored Contributor

Re: .rhosts for all users.

Hi,

You can use the ftp services or use SSh services on both the machines.

Piyush
Helen French
Honored Contributor

Re: .rhosts for all users.

You can try 'ftp' this doesn't require any .rhosts entries. As you are going to access only one file, this will be a better option for you.
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: .rhosts for all users.

You can consider automounter. For example .. (I'll use the maps to illustrate it)..
auto_master map
===============
/data /etc/auto_data
auto_data map
=============
machineA -nosuid machineA:/opt/dirA
machineB -nosuid machineB:/opt/dirA
So from any other machines you would be able to ..
$ cp myfile /data/machineA
and that makes a copy of "myfile" onto machineA's /opt/dirA.

just an idea..
Martin Johnson
Honored Contributor

Re: .rhosts for all users.

If your application has been designed to use .rhosts, you should continue to use it that way. Changing things can cause your application to have unexpected problems. I experienced all sorts of problems with my VRU application when I tried to tighten security.

HTH
Marty