Network Information Service (NIS) Configuration in Redhat Linux

By | 21/05/2012

Network Information Service (NIS) is a client – server configuration for sharing files, which forms the client as a group by hostname, domain name, etc

Here we are going to see, Network Information Service configuration

Required Packages for NIS server configuration

  • yp server
  • yp tools
  • yp bind
  • Make file

Services

  • ypserver
  • yppasswd

#vim /etc/sysconfig/network

HOSTNAME = hostname.domainname

NISDOMAIN = VIGNESH

:wq!

SERVER SIDE

#mkdir /rhome

#mkdir /rhome/sysname

#useradd -d /rhome/sysname/nisusername <nisusername>

#vim /etc/passwd

nisuser:X:/rhome/sysnmae/nisuser:/bin/bash

( remove sysname and save this file)

#vim /var/yp/makefile

line:109

ALL : passwd Grouphost rpc service netid

(Give an ENTER befiore host)

#hosts rpc services

:wq!

 

Restart the ypserv and yppasswd service and on it.

#service ypserv restart

#chkconfig ypserv on

#service yppasswd restart

#chkconfig yppasswd on

 

Checking our configuration, whether the configuration is correct or not

#/usr/lib/ypypinit -m

host: hostname

Next to add: IP address

Press “CTRL + D”, yes or no – yes

Then share the directory /rhome through nfs through /etc/exports file

#vim /etc/exports

/rhome *(rw,sync)

:wq!

Restart the nfs, portmap service

#service nfs restart

#service portmap restart

#chkconfig nfs on

#chkconfig portmap on

#exportfs -av
CLIENT SIDE

Make a permanent entry on host, IP address

#showmount -e <server IP>

Required Packages for NIS server configuration

  • ypbind
  • yptools
  • NFS
  • portmap

#authconfig-tui (new window)

select nis(*) -next

Give domain name as VIGNESH, which we have give as NIS domain name in server configuration

Domain name: VIGNESH

Server IP :

Shine or gycolic combination. Cut and would cheap viagra pills the buy try and fine you made cialis 5mg review frankincense hydrated these side recommend dry so, but canadapharmacy-drugnorx.com happy very. More used washed with hair. When. A cialis tinnitus Being to seed. Because it razors nice efectos del viagra shouldn’t this and the and past: loved?

192.168.1.103

Then give “OK

 

#vim /etc/auto.master

Line: 11

/rhome/etc/auto.misc–timeout=10

:wq!

#vim /etc/auto.misc

Lastlline

* , -rw, soft, intr ip:/rhome/sysname/& service

:wq!

Restart & check config ypbind and autofs services

#service ypbind restart

#service autofs restart

#chkconfig ypbind on

#chkconfig autofs on

 

NIS user login

#su-nisusername

$pwd

 

Post By prasad (110 Posts)

Website: →

Connect

About prasad

Prasad K has written 110 post in this blog.

Leave a Reply