- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to login remotely
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
10-25-2002 12:16 AM
10-25-2002 12:16 AM
the file nsswitch.conf is not available under /etc , however
I have attached a sample of another file nsswitch.nis, please check the contents of the file and let me know if I should make any changes. Also, is this why the users could not login remotely before I remove the /etc/resolv.conf. Is it the case that if the
/etc/resolv.conf is available and the /etc/nsswitch.conf is not available, the /etc/hosts file will be ignored. If yes, I beleive that was the problem.
I still need some thoughts.
Thnx.
Please check attachment for sample of my nsswitch.nis.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:03 AM
10-25-2002 01:03 AM
Re: unable to login remotely
they are
nsswitch.nis
nsswitch.nisplus
nsswitch.files
If you have configured nis then you can copy the nsswitch.nis to nsswitch.conf.
If you are just using files then you can copy the nsswitch.files to nsswitch.conf.
if you are just using files for passwd,group,networks,etc then for your dns setting just make changes like
passwd: files
group: files
hosts: dns [NOTFOUND=return] files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
Then make sure that you have the /etc/resolv.conf like
domainname
nameserver
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 01:04 AM
10-25-2002 01:04 AM
Re: unable to login remotely
domain
nameserver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 05:34 AM
10-25-2002 05:34 AM
Re: unable to login remotely
"man 4 nsswitch.conf" shows the default search order for hostname resolution is:
hosts: nis [NOTFOUND=return] files
Therefore, without nsswitch.conf, hostname resolution will try "nis" before looking at "files" (/etc/hosts) and DNS will not be used.
If you are not using NIS, you should create /etc/nsswitch.conf without specifying nis.
If you are not using DNS, it doesn't matter if you have /etc/resolv.conf or not. However, if you specify dns in nsswitch.conf and resolv.conf does not exist, DNS will not know how to resolve hostnames.
For your question "Is it the case that if the
/etc/resolv.conf is available and the /etc/nsswitch.conf is not available, the /etc/hosts file will be ignored" - the answer is no. The reason is found above in my first paragraph concerning the default search order for hostname resolution.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 06:18 AM
10-25-2002 06:18 AM
Re: unable to login remotely
I am at least partially wrong.
I just read another thread that said only DNS is used if /etc/resolv.conf exists and /etc/nsswitch.conf does not exist.
Here's what testing on my 11.0 system showed:
root:/etc # ll nsswitch.conf resolv.conf
nsswitch.conf not found
-rw-r--r-- 1 root sys 66 Oct 25 10:06 resolv.conf
root:/etc # nslookup pdc
Name Server: ns1.xxxxx.com
Address: xx.xx.xx.xx
Trying DNS
Trying NIS
looking up FILES
Name: pdc
Address: xx.xx.xx.xx
The above output shows that DNS, the NIS, then /etc/hosts was the search order.
Maybe the man page simply wasn't updated to reflect changed behavior that was introduced by a patch.
This is all the more reason to create nsswitch.conf and specify exactly what search order you need.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 07:53 PM
10-25-2002 07:53 PM
Re: unable to login remotely
All of the answers are realy useful. However, it seems that I was told that the users were unable to login remotely whereas the truth is that they were able to login but unable to exchange data with the server.. when I renamed the resolv.conf that problem was gone and I was realy was just trying to make the msg " unable to qualify my own domain using short name" go away..but here I'm having the same msg back again after renaming the resolv.conf
One more thing, the book HP certified for Rafeeq Ur-Rehamn states the input of the resolv.conf as following:
search
servername
please let me know what is it differe search from domain..
Thanks alot again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 09:11 PM
10-25-2002 09:11 PM
Re: unable to login remotely
"domain" defines the local domain name of the system.
"search" defines domains names to be searched if a fully qualified domain name (FQDN) is not given.
an example for the host server1.example.com would be:
domain example.com
search example.com otherdomain.com
nameserver
The search line above tells the resolver to try to resolve a lookup for "hostname" as "hostname.example.com" first, then if that fails to try "hostname.otherdomain.com"
Note: The search list is curretly limited to 6 domains with a total of 256 characters.
--
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 09:16 PM
10-25-2002 09:16 PM
Re: unable to login remotely
More information about the resolv.conf file can be found in the man pages.
# man resolver
--
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2002 11:40 PM
10-26-2002 11:40 PM
Re: unable to login remotely
I am still a littel confused though about why and what difficulties you are having. They appear to me to be a problem of resolving the clients address using your DNS. If they are not in you companies DNS then you may try changing the /etc/nsswitch.conf file as follows to get your resolver to look at /etc/hosts first.
hosts: files [NOTFOUND=continue] dns [NOTFOUND=return]
Then put your /etc/resolv.conf file back. Talking about the /etc/resolv.conf file, if you have a "search" line the "domain" line is ignored and your local domain should be listed first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2005 04:42 AM
02-24-2005 04:42 AM