LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-09-2008, 06:12 AM   #1
abhi_mattur
LQ Newbie
 
Registered: Oct 2007
Location: Bangalore
Posts: 20

Rep: Reputation: 0
Question NIS server


hi all,
i have installed NIS on my fedora 7 machine.when i type "ypcat passwd" on client its working fine.but when i type "ypcat hosts" its showing like :
127.0.0.1 hostname localhost.localdomain localhost
127.0.0.1 hostname localhost.localdomain localhost
127.0.0.1 hostname localhost.localdomain localhost


can any one tell me what is happening?
thanx in advance
Abhi
 
Old 01-11-2008, 08:18 AM   #2
froza
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
post the content of your hosts map, and nsswitch.conf of the client machine
 
Old 01-13-2008, 11:41 PM   #3
abhi_mattur
LQ Newbie
 
Registered: Oct 2007
Location: Bangalore
Posts: 20

Original Poster
Rep: Reputation: 0
Nis

hi,
this is the hosts of my client machine.

# Do not remove the following line, or various programs
# that require network functionality will fail.
i::1 localhost6.localdomain6 localhost6
192.168.1.56 samlinux56


&

this is his nsswitch file
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the local database (.db) files
# compat Use NIS on compat mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
#
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis

passwd: files nis ldap
shadow: files nis ldap
group: files nis ldap

#hosts: db files nisplus nis dns
hosts: files nis dns

# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files

#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers: files
netmasks: files
networks: files
protocols: files nis ldap
rpc: files
services: files nis ldap

netgroup: files nis ldap

publickey: nisplus

automount: files nis ldap
aliases: files nisplus

thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working fishsponge Linux - Networking 0 11-29-2005 07:43 AM
how to join NIS server (SUN machine) to Linux NIS server? KoRiR Linux - Networking 3 04-28-2004 01:19 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 07:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Solaris / OpenSolaris 1 03-31-2004 06:10 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration