- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- .rhosts question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 11:51 AM
03-22-2003 11:51 AM
.rhosts question
The systems resolve host names by its /etc/hosts file, then DNS. Both systems have entries like this:
nnn.nnn.nnn.nnn hosta hosta.mydomain.com
nnn.nnn.nnn.nnn hostb hostb.mydomain.com
The hosts resolve fine both by IP and hostname with nslookup.
What am I doing wrong? Thanks in advance for sparing the lecture on the insecurity of the r-commands.
Don Rider
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 12:01 PM
03-22-2003 12:01 PM
Re: .rhosts question
It is all in the lookup. In your /etc/hosts hostb is specified as the primary DNS name and the system will look for it.
On hosta, if you reverse the /etc/hosts entry like below
nnn.nnn.nnn.nnn hostb.mydomain.com hostb
then it will resolve the IP of hostb to fully qualified domain name and you should be able to login.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2003 08:57 AM
03-23-2003 08:57 AM
Re: .rhosts question
This what I understand form your question.
1. when you add the host name in the .rhost file it works, and
2. when you add the FQDN in the .rhost it does'nt
however you have both in the host file.
is this correct?
also check the /etc/nsswitch.conf file to ensure hosts point to files 1st and 2nd to DNS.
also try and remove DNS from this file and try again. I believe (might be wrong) that the remshd daemon will try to reolve by DNS if you have a FQDN in the .rhosts file
peace
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2003 10:29 PM
03-23-2003 10:29 PM
Re: .rhosts question
This problem is related to server lookup only.
you have to change the oreder the way you kept the enty in /etc/hosts file.
.rhost file always take hostname not the alias defined. so you can put hosta/hostb as alias nad fully qualified domain name as host name.
your problem will get resolved.
Sunil S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2003 09:04 AM
03-24-2003 09:04 AM
Re: .rhosts question
Don