# 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 서버가 나오면 끝!~
'Linux' 카테고리의 다른 글
nfsd: too many open connections, consider increasing the number of threads. (0) | 2020.05.19 |
---|---|
centos8 grub2 change default kernel (0) | 2020.05.15 |
ECMInstallIcons (0) | 2020.05.13 |
configure: error: Please install makeinfo before installing (0) | 2020.05.08 |
centos 8 ntpdate 사용하기 (0) | 2020.05.07 |