Page 136 - RHEL8 BOOK
P. 136
3. Assigning an NIS domain - Permenant
[root@comp1~]# vi /etc/sysconfig/network]
NETWORKING=yes
HOSTNAME=sun.zoom.com
NISDOMAIN=zoom.com
4. To restart the NIS services
root@comp1 ~]# service portmap restart
root@comp1 ~]# service yppasswdd restart
5. Open configuration for editing
root@comp1~]# vi /var/yp/Makefile
NOPUSH=TRUE #23
all : passwd group hosts \ #109 or 117
6. To restart the NIS services
[root@comp1 ~]# systemctl restart ypserv
7. To build database of users & groups
[root@comp1 ~]# /usr/lib64/yp/ypinit –m
8. To create users
[root@comp1 ~]#useradd user1
[root@comp1 ~]#useradd user2
9. To update database with new users
[root@comp1 ~]# useradd user3
[root@comp1 ~]# useradd user4
[root@comp1 ~]# cd /var/yp
[root@comp1 ~]# make
10. Install the package by using one of the installation methods
[root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt
[root@comp1 ~]# cd /mnt
[root@comp1 ~]# rpm -ivh nfs* --force –aid
11. Open configuration for editing
[root@comp1~]# vi /etc/exports
/home 192.168.0.0/255.255.255.0(rw,sync)
12. To restart the NFS services
[root@comp1 ~]# service nfs restart
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
136