Linux

centos 8 nis setting

Naan 2020. 5. 14. 21:43
320x100

# ypdomainname nis.test.com
# echo "NISDOMAIN=nis.test.com" >> /etc/sysconfig/network

# echo "domain nis.test.com server 192.168.0.22" >> /etc/yp.conf

# authselect select nis --force
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.

# authselect enable-feature with-mkhomedir
Make sure that NIS service is configured and enabled. See NIS documentation for more information.

- with-mkhomedir is selected, make sure pam_oddjob_mkhomedir module
is present and oddjobd service is enabled
- systemctl enable oddjobd.service
- systemctl start oddjobd.service

# setsebool -P nis_enabled on
# systemctl enable --now rpcbind ypbind nis-domainname oddjobd
Created symlink /etc/systemd/system/multi-user.target.wants/oddjobd.service → /usr/lib/systemd/system/oddjobd.service.

# ypwhich

192.168.0.22

위와 같이 nis 서버가 나오면 끝!~

320x100