Tuesday, August 15, 2017

yppasswd: can't find the master ypserver: Internal NIS error - Cent OS 7

1)  When trying to change the password from the NIS client, it throws the below error :

# yppasswd drbalep
yppasswd: can't find the master ypserver: Internal NIS error

# cat /etc/yp.conf
# /etc/yp.conf - ypbind configuration file
# Valid entries are
#
# domain NISDOMAIN server HOSTNAME
#       Use server HOSTNAME for the domain NISDOMAIN.
#
# domain NISDOMAIN broadcast
#       Use  broadcast  on  the local net for domain NISDOMAIN
#
# domain NISDOMAIN slp
#       Query local SLP server for ypserver supporting NISDOMAIN
#
# ypserver HOSTNAME
#       Use server HOSTNAME for the  local  domain.  The
#       IP-address of server must be listed in /etc/hosts.
#
# broadcast
#       If no server for the default domain is specified or
#       none of them is rechable, try a broadcast call to
#       find a server.
#
#domain abc server jkty.triples.com
domain abc broadcast

2) Change the entries in /etc/yp.conf

# vi /etc/yp.conf

domain abc server jkty.triples.com
#domain abc broadcast

3) Start and enable the ypbind service.

# systemctl start ypbind
# systemctl enable ypbind

# yppasswd drbalep
Changing NIS account information for drbalep on jkty.
Please enter root password:
Changing NIS password for drbalep on jkty.
Please enter new password:
Please retype new password:

The NIS password has been changed on jkty.




No comments:

Post a Comment