duplicate entries /.rhosts file

Hi,
I forgot how to start a new thread. :frowning:
Can somebody please guide me?

I have one problem related to /.rhosts file.
According to my understanding, /.rhosts file is used for "rsh". What will happen if I have duplicate entries in this file?
e.g> my .rhosts file looks like

wcars42g
wcars89j
wcars42g
wcars42b
wcars42b

Will duplicate entries in .rhosts file cause any nuisance?
Please guide me. :slight_smile:

There's no immediate problem having duplicate entries in your .rhosts file.

BUT, should you want to remove a server from it later, you run the risk of accidentally removing only one instead of all the instances of that server name.

I'd suggest you run the file through 'sort -u' or uniq to remove the duplicates, thus reducing your operational risk.

I'll also add the obligatory comment that perhaps you should not be using rhosts at all? ssh keys for individual accounts that you want to trust is 90% of the time a better option. Otherwise, if one host is compromised, all of them are.

Hi Dragon,

Thanks a lot for help. It works :slight_smile:

Regards,
akash