Professional Documents
Culture Documents
Day - 24 NIS
Day - 24 NIS
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
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
NIS Configuration
/home /home
Assigning Assigningan anNIS NISdomain domain [root@comp1~]# [root@comp1~]#nisdomainname nisdomainname zoom.com zoom.com
ZOOM.COM ZOOM.COM
/etc/sysconfig/network
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
/var/yp/Makefile
To Tochange changethe thebelow belowoption option NOPUSH=true NOPUSH=true all all::passwd passwdgroup grouphosts hosts\ \
NIS Server
NIS Server
To Torestart restartthe theNIS NISservices services [root@comp1 ~]# service ypserv restart [root@comp1 ~]# service ypserv restart
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 ~]#useradd user1 [root@comp1 ~]#useradd user1 [root@comp1 [root@comp1~]#useradd ~]#useradd user2 user2 To Toupdate updatedatabase databasewith withnew newusers users [root@comp1 ~]# useradd user3 [root@comp1 ~]# useradd user3 [root@comp1 [root@comp1~]# ~]#useradd useradduser4 user4 [root@comp1 [root@comp1~]# ~]#cd cd/var/yp /var/yp [root@comp1 ~]# make [root@comp1 ~]# make
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
/etc/exports
Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# rpmivh ivhforce forceaid aid ftp://192.168.0.250/pub/Server/yp* ftp://192.168.0.250/pub/Server/yp* [root@comp1~]#rpm
/home /home
NFS Server
Configuring Client
To Torestart restartthe theNFS NFSservices services [root@comp1 [root@comp1~]# ~]#service servicenfs nfs restart restart
Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# [root@comp1~]#rpm rpmivh ivhforce forceaid aid ftp://192.168.0.250/pub/Server/yp* ftp://192.168.0.250/pub/Server/yp*
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
/etc/sysconfig/network
Configuring Client
Connecting Connectingto toserver serverfor forauthentication authentication [root@comp1 ~]# authconfig-tui [root@comp1 ~]# authconfig-tui
Mounting Mountinghome homedirectories directoriesof ofthe theusers users [root@comp1 [root@comp1~]# ~]#mount mount 192.168.0.253:/home 192.168.0.253:/home /home /home
Checking Checkingfor forconnectivity connectivity [root@comp1 ~]# ypwhich [root@comp1 ~]# ypwhich
User1
****
user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted
User1
User2
user2
****
user2 user2not notfound found Authentication Authentication Fail Fail Access Access--Denied Denied
User2
User2
user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted
User2
User1
user1
****
user1 user1not notfound found Authentication Authentication Failed Failed Access Access--Denied Denied
User1
User1
user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted
****
User1
User2
user2
****
user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted
User2
User1
user1 user1found found Authentication Authentication Successful Successful Access Access--Granted Granted
****
User1
User2
user2
****
user2 user2found found Authentication Authentication Successful Successful Access Access--Granted Granted
User2