LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2006, 08:56 PM   #1
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
NIS client problem


Hi,

I have 4 machines(M0,M1,M2,M3) on a LAN. I have used M0
as NIS server and others as NIS clients.

When I give command:
ypcat passwd on server, I do not get any error.
But when I get the same command on clients, I get
message:

No such map passwd.byname. Reason: Internal NIS error.
____________________________________________________
/etc/defaultdomain has nisdomainname.
/etc/yp.conf has the NIS server IP address, which is
also present in the /etc/hosts.

/etc/nsswitch.conf has:
passwd: compact
group: compact
shadow: compact
netgroup: nis

I added: +:::::: to /etc/passwd, +::: to /etc/group,
and +:::::::: to /etc/shadow.

/etc/default/nis has:
NISSERVER=false (for clients)____________________________________________________

I started /etc/init.d/portmap and then /etc/init.d/nis

/var/yp has nisdomainname directory in master
but /var/yp doesnot have nisdomainname directory in clients.

I do not know what else to do. Please help.

Thanks

Last edited by linian; 07-31-2006 at 09:50 PM.
 
Old 08-01-2006, 12:34 AM   #2
markcowley
LQ Newbie
 
Registered: Apr 2004
Distribution: Kubuntu
Posts: 5

Rep: Reputation: 0
Hi, it sounds like you've covered everything.

Does your /etc/yp.conf look like:
ypserver my.server.com

mark

Quote:
Originally Posted by linian
Hi,

I have 4 machines(M0,M1,M2,M3) on a LAN. I have used M0
as NIS server and others as NIS clients.

When I give command:
ypcat passwd on server, I do not get any error.
But when I get the same command on clients, I get
message:

No such map passwd.byname. Reason: Internal NIS error.
____________________________________________________
/etc/defaultdomain has nisdomainname.
/etc/yp.conf has the NIS server IP address, which is
also present in the /etc/hosts.

/etc/nsswitch.conf has:
passwd: compact
group: compact
shadow: compact
netgroup: nis

I added: +:::::: to /etc/passwd, +::: to /etc/group,
and +:::::::: to /etc/shadow.

/etc/default/nis has:
NISSERVER=false (for clients)____________________________________________________

I started /etc/init.d/portmap and then /etc/init.d/nis

/var/yp has nisdomainname directory in master
but /var/yp doesnot have nisdomainname directory in clients.

I do not know what else to do. Please help.

Thanks
 
Old 08-01-2006, 03:42 AM   #3
gkilbur1
LQ Newbie
 
Registered: Nov 2005
Distribution: SLES9
Posts: 1

Rep: Reputation: 0
do you really have "compact" in nsswitch.conf or is it just a typo? should be "compat"

>>/etc/nsswitch.conf has:
>>passwd: compact
>>group: compact
>>shadow: compact
>>netgroup: nis
 
Old 08-01-2006, 11:45 AM   #4
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Hi markcowley,

I have written IP address instead of name in /etc/yp.conf.
So it looks like:
ypservers xxx.xx.xx.xxx


Hi gkilbur1,

/etc/nsswitch.conf has:
passwd: compat
group: compat
shadow: compat
netgroup: nis
I wrote: 'compact'in my question, which was typographical error in the question.

I think that there could be two problems:
1. NIS Client is some how not communicating with NIS server.
2. NIS database is not being updated.

To verify the first doubt, I disconnected the NIS server from
the switch and then gave command 'ypcat passwd'.
The result was:
No such map passwd.byname. Reason: Cannot communicate with portmapper.
(I typed rpcinfo -p localhost and found that portmap was running)
Then I conneced the ethernet jack of server to the switch and typed again: ypcat passwd.
This time I got the different message:
No such map passwd.byname. Reason: Internal NIS error.
Then I blocked that client to access ther server by using a firewall on the server. Then I again got message:
No such map passwd.byname. Reason: Cannot communicate with portmapper.

This implies that there some sort of connection between client and the server, but may be server is not trasferring the required information to the client.

I cd to /var/yp on NIS server and typed make. This updated data on the NIS server.

(I am using Debian sarge)

I do not know how to carry out further diagnosis.

Please help. Thanks

Last edited by linian; 08-01-2006 at 01:22 PM.
 
Old 08-01-2006, 05:33 PM   #5
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
One more thing
There is no directory with the nisdomainname in /var/yp of clients.
But there is a directory with the name of nis domain name in the server.

I do not know whether this is okay or not??
 
Old 08-02-2006, 02:36 AM   #6
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
EVENTUALLY GOT IT WORKING.

THANKS FOR THE SUPPORT and HELP
 
Old 08-02-2006, 10:16 AM   #7
special.michael
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
so what was the problem

Quote:
Originally Posted by linian
EVENTUALLY GOT IT WORKING.

THANKS FOR THE SUPPORT and HELP
glad to hear you got it to work, what did you have to fix?
 
Old 08-02-2006, 11:01 AM   #8
linian
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
solution:

Very simple. But very tricky.

In ypserv.securenets, there is a special way to allow a host.
That is :

host 10.0.0.1

I had written only 10.0.0.1 ( as we do in /etc/hosts.allow)

This word "host", cost me a lot of time.
 
  


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
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 12:43 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
NIS client useradd problem lparag Red Hat 0 09-22-2003 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:39 PM.

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