Fedora 22
Sponsored Link

Configure NIS Client
2015/05/31
 
Configure NIS Client.
This example is based on the environment below.
+----------------------+          |          +----------------------+
| [    NIS Server    ] |10.0.0.30 | 10.0.0.31| [    NIS Client    ] |
|     dlp.srv.world    +----------+----------+     www.srv.world    |
|                      |                     |                      |
+----------------------+                     +----------------------+

[1] Configure NIS Client.
[root@www ~]#
dnf -y install ypbind rpcbind
# set NIS domain

[root@www ~]#
ypdomainname srv.world

[root@www ~]#
echo "NISDOMAIN=srv.world" >> /etc/sysconfig/network

[root@www ~]#
authconfig \
--enablenis \
--nisdomain=srv.world \
--nisserver=dlp.srv.world \
--enablemkhomedir \
--update
[root@www ~]#
systemctl start rpcbind ypbind

[root@www ~]#
systemctl enable rpcbind ypbind

[root@www ~]#
www login:
redhat
# the user on NIS

Password:
# NIS password

Creating directory '/home/redhat'.
[redhat@www ~]$
# just logined
# confirm connected NIS server

[redhat@www ~]$
dlp.srv.world
# confirm to changing password

[redhat@www ~]$
Changing NIS account information for redhat on dlp.srv.world.
Please enter old password:
# current password

Changing NIS password for redhat on dlp.srv.world.
Please enter new password:
# new password

Please retype new password:
The NIS password has been changed on dlp.srv.world.
Matched Content