Re: NIS Problems



Hello Vaibhav, thanks so much for your reply.

Here's what I found, all of this done as root:

1) On one of the three servers the NIS_DOMAIN setting in the
/etc/rc.config.d/namesvrs config file was different from the other two.
I fixed that so all three servers have the same NIS_DOMAIN.

2) On all three servers I confirmed that the namesvrs config file has

NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT=0
NISPLUS_SERVER=1
NISPLUS_CLIENT=1


3) ps -ef on each of the three servers showed a different set of demons
running. One had rpc.nispasswdd, another had rpc.nisd and the third had
nis_cachemgr. Also a couple of them had keyserv.

4) On all three servers I stopped the demons with

# /sbin/init.d/nisplus.client stop
# /sbin/init.d/nisplus.server stop

5) On all three servers I started the demons with

# /sbin/init.d/nisplus.server start
# /sbin/init.d/nisplus.client start

6) On one of the three servers ps -ef shows:

# ps -ef | grep nis
root 23889 1 210 15:01:40 ? 10:03 /usr/sbin/nis_cachemgr
root 23852 1 20 15:00:26 ? 1:52 /usr/sbin/rpc.nisd


On another I see:

# ps -ef | grep nis
root 20418 1 205 14:52:03 ? 9:55 /usr/sbin/nis_cachemgr
root 20387 1 0 14:51:01 ? 0:00 /usr/sbin/rpc.nispasswdd
root 20382 1 101 14:51:01 ? 7:28 /usr/sbin/rpc.nisd


On the third server ps -ef hangs now (didn't before) and never returns
without ctrl-c. Incidentally, that's the same server where I changed the
NIS_DOMAIN to match the other two.

7) On all three servers "niscat passwd.org_dir" still hangs.

Any more suggestions? :)

TIA,
Barry.




In article <1163498800.297392.228810@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"air_castle" <vaibhavbhatia@xxxxxxxxx> wrote:

Hi Barry,
Probably the NIS+ server is not running. If you are root,
you can try the following commands to restart NIS+ and try to access
the passwd.org_dir file again

1. Check if the /etc/rc.config.d/namesvrs file has the following
variables set to 1
NISPLUS_SERVER=1
NISPLUS_CLIENT=1

2. Then restart Nisplus Server and Client as follows:

# /sbin/init.d/nisplus.client stop
# /sbin/init.d/nisplus.server stop
# /sbin/init.d/nisplus.server start
# /sbin/init.d/nisplus.client start

Hope this helps.
Vaibhav
.



Relevant Pages

  • help with designing an app. based on ConfigParser
    ... I would simply parse all servers in the "UPDATE SERVERS" section and sort them so I could get the priority. ... Also I would like to set multiple kind of update servers, like http, rsync, having to parse split up the URL is also a pain. ... But it's not very efficient when I want to parse the WHOLE config file to find which servers are available and retrive their options. ...
    (comp.lang.python)
  • Re: Re-configuring remoting from config file during application session
    ... two different servers remoting the same object type, ... > Private Sub frmMain_Load(ByVal sender As Object, ... >> channel and formatter info is in the config file. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Still cant make yum.conf to install mplayer from livna
    ... not yum install the mplayer as I used the sample yum.conf, ... Well, as I said before, the alternate repositoires /ARE/ necessary if ... beginning of the line /*is not*/ part of the config file. ... Now, since you are worried about extra unneccessary servers, you need to ...
    (Fedora)
  • Re: Reference to hash and array
    ... > You put the list of your servers IP and port number into servers. ... But you can also load the module this way. ... I want to make my config file looks like: ...
    (comp.lang.perl.misc)
  • Re: I need to add a new backup server line to the config file on 100 linux servers and then restart
    ... We use veritas backup client. ... I need to add a new backup server line to the config file on 100 linux ... servers and then restart the client. ...
    (comp.unix.questions)