LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-20-2008, 07:41 AM   #1
soumalya
Member
 
Registered: Nov 2006
Posts: 256

Rep: Reputation: 31
NIS Server configuration


Sir i have configured NIS server

pls check if i am wrong anywhere

NIS Server Configuration
Machine name: redtest.com , dnsname:test.com ip:192.168.20.1 user=soumalya
# nisdomainname test
# vi /etc/yp.conf
domain test server 192.168.20.1
# vi /etc/nssswitch.conf
passwd: files nis
shadow: files nis
group: files nis
# vi /etc/ypserv.conf
dns : no
*: shadow.byname : port
*asswd.adjunct.byname : port
*:*:*: none
# vi /var/yp/securenets (to create securenets file and edit)
255.255.255.255 127.0.0.0
255.255.255.0 192.168.20.0
# service portmap restart
# chkconfig protmap on
# rpcinfo -u localhost
# service ypserv restart
# chkconfig ypserv on
# rpcinfo -u redtest portmapper
# rpcinfo -u redtest ypserv
# /usr/lib/yp/ypinit -m
next host to add: redtest.test.com
next host to add: NIS Client name
next host to add: NIS Client ip
ctrl+D
is this correct? y
# service yppasswdd restart
# chkconfig yppasswdd on
# rpcinfo -u redtest yppasswdd
# vi /etc/sysconfig/network
NISDOMAIN=test
# cd /var/yp
# make
# service ypbind restart
# chkconfig ypbind on
#rpcinfo -u localhost ypbind
# vi /etc/exports (to share ditectory)
/home 192.168.20.0/24(rw,sync)
/home *(rw,sync)
# exportfs –a
# exportfs –v
# chkconfig nfslock on
# chkconfig nfs on
# service nfslock restart
# service nfs restart
# reboot
NIS Slave Server (server name : pinktest.com)
# vi /etc/hosts
192.168.20.3 pinktest.com (in master server)

# vi /etc/hosts
192.168.20.1 redtest.com (in slave server)

In slave server

# vi /etc/sysconfig/network
NISDOMAIN=test
# service portmap start
# service ypbind start
# service ypserv start
# service yppasswdd start
# service ypxfrd start

In Master Server

# service ypxfrd start

In slave server
# ypwhich –m
# usr/lib/yp/ypinitt –s 192.168.20.1


In Master Server

# vi /var/yp/ypservers
redtest
pinktest
#cp Makefile Makefile.old
# vi /var/yp/Makefile
NOPUSH=false
# make

In slave server
# vi /etc/exports (to share ditectory)
/home 192.168.20.0/24(rw,sync)
/home *(rw,sync)
# exportfs –a
# exportfs –v
# chkconfig nfslock on
# chkconfig nfs on
# service nfslock restart
# service nfs restart
# reboot
NIS CLIENT Configuration (ip:192.168.20.2)
# nisdomainname test
# ypserv 192.168.20.1
# vi /etc/yp.conf
domain test server 192.168.20.1
domain test server 192.168.20.2
# authconfig
select NIS
next
NIS Domain:test
NIS Server:192.168.20.1
# vi /etc/yp.conf
last line shows
domain test server redtest
# service ypbind restart
# chkconfig ypbind on
# service yppasswdd restart
# chkconfig yppasswd on
# service portmap restart
# chkconfig protmap on
# rpcinfo -u localhost
# service ypserv restart
# chkconfig ypserv on
# rpcinfo -u redtest ypbind
# ypcat passwd.byname
# vi /etc/host.conf
order hosts , nis , bind
# vi /etc/nssswitch.conf
passwd: files nis dns
shadow: files nis dns
group: files nis dns
hosts: files nis dns
# ypcat -x
# ypcat hosts
# chkconfig nfslock on (to mount server’s shared directory)
# service nfslock restart
# chkconfig netfs on
# service netfs restart
# chkconfig protmap on
# mount 192.168.20.1:/home /home
# mount 192.168.20.3:/home /home
# ls /home
# umount /home
# vi /etc/auto.master
/home /etc/auto.home (or auto.misc) –timeout=60
# vi /etc/auto.home (or auto.misc)
(Star sign) -fstype=nfs,soft 192.168.20.1:/home:&
(Star sign) -fstype=nfs,soft 192.168.20.1:/home:&


# chkconfig autofs restart
# service autofs restart
# showmount -e
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris 10 NIS server configuration UltraSoul Solaris / OpenSolaris 19 05-28-2012 11:16 AM
NIS server Configuration abhishek124 Linux - Networking 1 05-22-2005 03:20 AM
NIS server Configuration abhishek124 Linux - Software 2 05-19-2005 10:36 AM
NIS server Configuration abhishek124 Linux - Security 1 05-19-2005 08:50 AM
NIS server configuration UltraSoul Solaris / OpenSolaris 1 05-01-2005 07:40 AM


All times are GMT -5. The time now is 03:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration