Sponsored Link

NIS : Configure Client2021/08/04

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 ~]#

[root@node01 ~]#
echo "" >> /etc/sysconfig/network

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

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

domain server
[root@node01 ~]#
authselect select nis --force

Backup stored at /var/lib/authselect/backups/2021-08-04-00-18-12.kpwI81
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 ~]#
Rocky Linux 8.4 (Green Obsidian)
Kernel 4.18.0-305.3.1.el8_4.x86_64 on an x86_64

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

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

# confirm binded NIS server

[rocky@node01 ~]$
# change NIS password

[rocky@node01 ~]$

Changing NIS account information for rocky on
Please enter old password:     # current password
Changing NIS password for rocky on
Please enter new password:     # new one
Please retype new password:

The NIS password has been changed on
Matched Content