NIS : Configure Client2021/09/06 |
Configure NIS Client to bind NIS Server to login with NIS user account.
|
|
[1] | Install NIS System. |
root@node01:~# apt -y install nis
|
[2] | Configure as a NIS Client. |
root@node01:~#
vi /etc/yp.conf # # yp.conf Configuration file for the ypbind process. You can define # NIS servers manually here if they can't be found by # broadcasting on the local net (which is the default). # # See the manual page of ypbind for the syntax of this file. # # IMPORTANT: For the "ypserver", use IP addresses, or make sure that # the host is in /etc/hosts. This file is only interpreted # once, and if DNS isn't reachable yet the ypserver cannot # be resolved and ypbind won't ever bind to the server. # ypserver ypserver.network.com # add to the end: [domain name] [server] [NIS server's hostname] domain srv.world server dlp.srv.world
root@node01:~#
vi /etc/nsswitch.conf # line 7 : add like follows passwd: files systemd nis group: files systemd nis shadow: files nis gshadow: files hosts: files dns nis
root@dlp:~#
vi /etc/defaultdomain # create new : set domain name srv.world # set follows if needed (create home directory automatically if none) root@node01:~# vi /etc/pam.d/common-session # add to the end session optional pam_mkhomedir.so skel=/etc/skel umask=077
root@node01:~#
systemctl restart rpcbind nscd ypbind root@node01:~# systemctl enable rpcbind ypbind root@node01:~# node01 login: bullseye # NIS user Password: Linux node01.srv.world 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Creating directory '/home/bullseye'. bullseye@node01:~$ # just logined # changing NIS password is like follows bullseye@node01:~$ Changing NIS account information for bullseye on dlp.srv.world. Please enter old password: Changing NIS password for bullseye on dlp.srv.world. Please enter new password: Please retype new password: The NIS password has been changed on dlp.srv.world. bullseye@node01:~$ |
Sponsored Link |
|