Sie sind auf Seite 1von 7

NIS Network Information System. Steps for server configuration.

Step . 1
Copy the nsswitch.nis into nsswitch.conf in the /etc directory.
# cd /etc
# cp nsswitch.nis nsswitch.conf
Step: 2
Set the Domain name
# domainname domainname
ex.: domainname Chennai.com
# domainname > /etc/defautdomain
Step: !
"odify the "a#efie under the /$ar/yp directroty
# cp "a#efie "a#efie.ori%
# $i "a#efie
&nder all #eyword deete the aliases.
'he foowin% entries in the ast of the fie(
/)D*+>/prof,attr
/)D*+>/exec,attr
/)D*+>/auth,attr
/)D*+>/audit,user
chan%ed to (
/)+-.CD*+>/prof,attr
/)+-.CD*+>/exec,attr
/)+-.CD*+>/auth,attr
/)+-.CD*+>/audit,user
Sa$e and exit.
Step: /
Create a master ser$er usin% the command ypinit
# ypinit 0m
'he system as#s for a Ser$er 1ame. .fter that you press ctr2d . System as#s for a
confirmation. 3ress y.
System create 1*S maps. 4inay you %ot the foowin% messa%e.
'he system created as 1*S master ser$er without errors. 'his is the confirmation
to create a master ser$er.
Step: 5
.ddin% 14S and .&'64S to this 1*S master.
4ies : /etc/dfs/dfsta7
/etc/auto,master
/etc/auto,home
/etc/auto,direct.
"o$e the man directories to man.ori%.
# cd /usr/share
# m$ man man.ori%
# m#dir man
819 /etc/dfs/dfshare
.ddin% the resources what you are shared in the ser$er.
4or exampe: "an pa%es and user directories shared.
# $i /etc/dfs/dfsta7
share /export/home
share /usr/share/man.ori%
Sa$e and exit
Stop and start the 14S Ser$er
# /etc/init.d/nfs.ser$er stop
#/etc/init.d/nfs.ser$er start
829 /etc/auto,master
# $i /etc/auto,master
4irst comment the 2auto,master
8ie9 # 2auto,master
.dd the foowin% ine.
/; auto,direct
Sa$e < exit .
8!9 /etc/auto,home
# $i /etc/auto,home
4irst comment the 2auto,home
8ie9 #2auto,home
.dd the foowin% ine.
= )systemname>:/export/name/<
Sa$e < exit.
8/9 /etc/auto,direct
# $i /etc/auto,direct
.dd the foowin% ine(
/usr/share/man )systemname>:/usr/share/man.ori%
Sa$e < exit.
+un the foowin% command and ena7e automountd.
# automount 0$
Step: >
.%ain edit the "a#efie: add the entry auto,direct.
4irst add the auto,direct: under the #eyword all. &nder all #eyword after
auto,home: add the entry auto,direct.
Second copy the code of auto,home and paste 7eow the auto,home codin%: *n
the copyin% code chan%e auto,home into auto,direct.
'hird insert the entry after auto.home: auto.home.time 'he entry is
auto.direct: auto.direct.time.
4ourth insert the path after auto home. 'he entry is
?8D*+9/auto,direct.
Sa$e the "a#efie and exit.
Step: @
*f you edit any one of the a7o$e fies. 4or exampe "a#efie 8or9 auto,home 8or9
auto,direct. &pdated the map is necessary. 4or update the maps run the foowin%
command.
# cd /$ar/yp
# /usr/ccs/7in/ma#e
.fter that pease chec# the confi%uration usin% the foowin% commands.
# ypwhich #Dispay the se$er name
# ypwhich 0 m #Dispay the ser$er maps detais.
NIS Network Information System. Steps for client configuration.
Step . 1
Copy the nsswitch.nis into nsswitch.conf in the /etc directory.
# cd /etc
# cp nsswitch.nis nsswitch.conf
Step: 2
Set the Domain name
# domainname domainname
ex.: domainname Chennai.com
# domainname > /etc/defautdomain
Step: !
Adit the /etc/hosts fie and the ser$er entry.
# $i /ec/hosts
)ip;address> )ser$er system name>
Sa$e and exit.
Step: /
4or cient confi%uration: +un the foowin% commands.
# ypinit 0c
System as#s the ser$er name: pease enter the ser$er name after that press
ctr2d.
.%ain system as#s the confirmation press y.
'he cient confi%uration is finished.
4or confirmation pease run the foowin% command.
# ypwhich #Dispay the se$er name
# ypwhich 0 m #Dispay the ser$er maps detais.
NIS Network Information System. Steps for Slave Server configuration.
Step . 1
Copy the nsswitch.nis into nsswitch.conf in the /etc directory.
# cd /etc
# cp nsswitch.nis nsswitch.conf
Step: 2
Set the Domain name
# domainname domainname
ex.: domainname Chennai.com
# domainname > /etc/defautdomain
Step: !
Adit the /etc/hosts fie and the ser$er entry.
# $i /ec/hosts
)ip;address> )ser$er system name>
Sa$e and exit.
Step: /
4or cient confi%uration: +un the foowin% commands.
# ypinit 0c
System as#s the ser$er name: pease enter the ser$er name after that press
ctr2d.
.%ain system as#s the confirmation press y.
'he cient confi%uration is finished.
4or confirmation pease run the foowin% command.
# ypwhich #Dispay the se$er name
# ypwhich 0 m #Dispay the ser$er maps detais.
Step: 5
.%ain run the ypinit command.
# ypinit 0s # ;s for sa$e ser$er confi%uration
System first dispay the ser$er name: we add the sa$e ser$er name aso. .fter that
press ctr2d.
'he sa$e ser$er confi%uration is finished.

Das könnte Ihnen auch gefallen