Nis

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Nis as PDF for free.

More details

  • Words: 593
  • Pages: 22
1

NIS SERVER

The two common authentication services are the Network Information Service (NIS) and the Lightweight directory Access Protocol (LDAP). Both NIS and LDAP allows to manage all users & computer centrally

2

How Local Authentication works ?

Linux Linux Client Client

Linux Linux Client Client user1 user1

user2 user2

3

Solution for Local Authentication

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

Linux Linux Client Client user1 user1

user2 user2

user2 user2

user1 user1

4

How NIS works ?

NIS NIS Server Server 192.168.0.253 192.168.0.253

Linux Linux Client Client

user1 user1 user2 user2

Linux Linux Client Client

5

Requirements Packages ypserv-2.13.5.i386.rpm ypbind-1.17.2-3.i386.rpm yp-tools-2.8-7.i386.rpm Port Numbers NIS uses random port numbers [root@comp1 ~]# rpcinfo -p Configuration File /var/yp/Makefile Service ypserv yppasswdd Daemons ypserv yppasswdd

6

NIS Configuration

user1 user1 user2 user2

NIS NIS ++ NFS NFS Server Server 192.168.0.253 192.168.0.253

/home /home

Linux Linux Client Client

Linux Linux Client Client

ZOOM.COM ZOOM.COM

7

Configuring NIS Server

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt /mnt [root@comp1 ~]# cd /mnt [root@comp1 ~]# cd /mnt [root@comp1 [root@comp1~]# ~]#rpm rpm -ivh -ivh yp* yp* --force --force --aid --aid

Assigning Assigningan anNIS NISdomain domain [root@comp1~]# [root@comp1~]#nisdomainname nisdomainname zoom.com zoom.com

Assigning Assigningan anNIS NISdomain domain--Permenant Permenant [root@comp1~]# vi /etc/sysconfig/network [root@comp1~]# vi /etc/sysconfig/network

8

/etc/sysconfig/network

Add Addbelow belowline line NISDOMAIN=ZOOM.COM NISDOMAIN=ZOOM.COM

9

NIS Server

To Torestart restartthe theNIS NISservices services [root@comp1 ~]# service portmap restart [root@comp1 ~]# service portmap restart [root@comp1 [root@comp1~]# ~]#service serviceyppasswdd yppasswdd restart restart

10

Configuring NIS Server

Open Openconfiguration configurationfor for editing editing [root@comp1~]# vi /var/yp/Makefile [root@comp1~]# vi /var/yp/Makefile

11

/var/yp/Makefile

To Tochange changethe thebelow belowoption option NOPUSH=TRUE NOPUSH=TRUE all all::passwd passwdgroup grouphosts hosts\\

12

NIS Server

To Torestart restartthe theNIS NISservices services [root@comp1 ~]# service ypserv restart [root@comp1 ~]# service ypserv restart

13

NIS Server

To Tobuild build database databaseof ofusers users& & groups groups [root@comp1 ~]# /usr/lib/yp/ypinit -m [root@comp1 ~]# /usr/lib/yp/ypinit -m

To Tocreate createusers users [root@comp1 [root@comp1~]#useradd ~]#useradd user1 user1 [root@comp1 [root@comp1~]#useradd ~]#useradd user2 user2 To Toupdate updatedatabase databasewith with new newusers users [root@comp1 [root@comp1~]# ~]#useradd useradduser3 user3 [root@comp1 [root@comp1~]# ~]#useradd useradduser4 user4 [root@comp1 ~]# cd /var/yp [root@comp1 ~]# cd /var/yp [root@comp1 [root@comp1~]# ~]# make make

14

15

Requirements Packages portmap-4.0-63.i386.rpm nfs-utils-1.0.6-46.i386.rpm Port Numbers 2049 Nfsd 111 Portmap Configuration File /etc/exports Service portmap nfs Daemons nfsd mountd statd lockd

16

Configuring NFS Server

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt /mnt [root@comp1 ~]# cd /mnt [root@comp1 ~]# cd /mnt [root@comp1 [root@comp1~]# ~]#rpm rpm -ivh -ivh nfs* nfs* --force --force --aid --aid

Open Openconfiguration configurationfor forediting editing [root@comp1~]# vi /etc/exports [root@comp1~]# vi /etc/exports

17

/etc/exports

/home /home

To Toadd addthe thebelow below 192.168.0.0/255.255.255.0(rw,sync) 192.168.0.0/255.255.255.0(rw,sync)

18

NFS Server

To Torestart restartthe theNFS NFSservices services [root@comp1 ~]# service nfs restart [root@comp1 ~]# service nfs restart

19

Configuring Client

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt /mnt [root@comp1 ~]# cd /mnt [root@comp1 ~]# cd /mnt [root@comp1 [root@comp1~]# ~]#rpm rpm -ivh -ivh ypbind* ypbind*yp-tools* yp-tools* --force --force --aid --aid

Assigning Assigningan anNIS NISdomain domain [root@comp1~]# [root@comp1~]#nisdomainname nisdomainname zoom.com zoom.com

Assigning Assigningan anNIS NISdomain domain--Permenant Permenant [root@comp1~]# vi /etc/sysconfig/network [root@comp1~]# vi /etc/sysconfig/network

20

/etc/sysconfig/network

Add Addbelow belowline line NISDOMAIN=ZOOM.COM NISDOMAIN=ZOOM.COM

21

Configuring Client

Connecting Connectingto toserver serverfor forauthentication authentication [root@comp1 ~]# authconfig [root@comp1 ~]# authconfig

Mounting Mountinghome homedirectories directoriesof ofthe theusers users [root@comp1 ~]# mount 192.168.0.253:/home [root@comp1 ~]# mount 192.168.0.253:/home /home /home

Checking Checkingfor forconnectivity connectivity [root@comp1 ~]# ypwhich [root@comp1 ~]# ypwhich

22

Related Documents

Nis
October 2019 2
Nis%20_raj
June 2020 2
Nis Assigment
May 2020 3
Nis-howto
May 2020 39
Adminguide-fns&nis+
November 2019 1
Solaris10 Dns,nis Ldap
April 2020 0