CentOS Stream 8
Sponsored Link

NIS : Configure Client2021/03/11

 
Configure NIS Client to share Network information like user accounts and so on.
[1] Install Ypbind and Configure NIS Client.
[root@node01 ~]#
dnf -y install ypbind rpcbind oddjob-mkhomedir
# set NIS domain

[root@node01 ~]#
ypdomainname srv.world

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

[root@node01 ~]#
vi /etc/yp.conf
# add to the end

# [domain (NIS domain) server (NIS server)]

domain srv.world server dlp.srv.world
[root@node01 ~]#
authselect select nis --force

Backup stored at /var/lib/authselect/backups/2021-03-11-01-21-31.2BXIob
Profile "nis" was selected.
The following nsswitch maps are overwritten by the profile:
- aliases
- automount
- ethers
- group
- hosts
- initgroups
- netgroup
- networks
- passwd
- protocols
- publickey
- rpc
- services
- shadow

Make sure that NIS service is configured and enabled. See NIS documentation for more information.

# set if you need (create home directory when initial login)

[root@node01 ~]#
authselect enable-feature with-mkhomedir

# if SELinux is enabled, change boolean setting

[root@node01 ~]#
setsebool -P nis_enabled on

[root@node01 ~]#
systemctl enable --now rpcbind ypbind nis-domainname oddjobd

[root@node01 ~]#
CentOS Stream 8
Kernel 4.18.0-277.el8.x86_64 on an x86_64

Activate the web console with: systemctl enable --now cockpit.socket

node01 login: redhat     # NIS user
Password:
Creating home directory for redhat.
[redhat@node01 ~]$       # just logined

# confirm binded NIS server

[redhat@node01 ~]$
ypwhich

dlp.srv.world
# change NIS password

[redhat@node01 ~]$
yppasswd

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 one
Please retype new password:

The NIS password has been changed on dlp.srv.world.
Matched Content