Debian 11 Bullseye
Sponsored Link

NIS : Configure Client2021/09/06

Configure NIS Client to bind NIS Server to login with NIS user account.
[1] Install NIS System.
apt -y install nis
[2] Configure as a NIS Client.
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
# add to the end: [domain name] [server] [NIS server's hostname]

domain server
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

vi /etc/defaultdomain
# create new : set domain name
# set follows if needed (create home directory automatically if none)

vi /etc/pam.d/common-session
# add to the end

session optional skel=/etc/skel umask=077

systemctl restart rpcbind nscd ypbind

systemctl enable rpcbind ypbind

node01 login: bullseye     # NIS user
Linux 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

Changing NIS account information for bullseye on
Please enter old password:
Changing NIS password for bullseye on
Please enter new password:
Please retype new password:

The NIS password has been changed on

Matched Content