Perform the solaris9 NIS configuration exercise on the VM. There are two machines: mysun909.90) and mysun1109.110 ). Paste the configuration process below:
Configure the master nis Server:
# Hostname
Mysun90
# More/etc/hosts
127.0.0.1 localhost
192.168.9.90 mysun90 loghost
192.168.9.110 mysun110
# Cd/var/yp
# Cp Makefile. orig
# Vi Makefile (remove aliases)
All: passwd group hosts ipnodes ethers networks rpc services protocols \
Netgroup bootparams publickey netid netmasks c2secure \
Timezone auto. master auto. home ageing \
Auth. attr exec. attr prof. attr user. attr audit. user
# Domainname mysun.com
# Echo "mysun.com">/etc/defaultdomain
# Cd/etc
# Touch ethers bootparams netgroup
# Echo "GMT + 08:00 mysun.com">/etc/timezone
# More/etc/auto_master
+ Auto_master
/Net-hosts-nosuid, nobrowse
/Home auto_home-nobrowse
/Xfn-xfn
# Vi/etc/auto_home
+ Auto_home
* Mysun90:/export/home /&
# Echo "share/export/home">/etc/dfs/dfstab
#/Etc/init. d/nfs. server start
# Share
-/Export/home rw ""
# Useradd-d/export/home/user4-m user4
# Vi/etc/passwd
User4: 401: 1:/home/user4:/bin/sh
# Vi/etc/shadow
User4 ::::::::
# Su-user4
Sun Microsystems Inc. SunOS 5.9 Generic January 2003
$ Pwd
/Home/user4
$ Exit
# Cp/etc/nsswitch. nis/etc/nsswitch. conf
# Ypinit-m
In order for NIS to operate sucessfully, we have to construct a list of
NIS servers. Please continue to add the names for YP servers in order
Preference, one per line. When you are done with the list, type a <control D>
Or a return on a line by itself.
Next host to add: mysun90
Next host to add: mysun110
Next host to add: ^ D
The current list of yp servers looks like this:
Mysun90
Mysun110
Is this correct? [Y/n: y] y
Installing the YP database will require that you answer a few questions.
Questions will all be asked at the beginning of the procedure.
Do you want this procedure to quit on non-fatal errors? [Y/n: n] n
OK, please remember to go back and redo manually whatever fails. If you
Don't, some part of the system (perhaps the yp itself) won't work.
The yp domain directory is/var/yp/mysun.com
There will be no further questions. The remainder of the procedure shocould take
5 to 10 minutes.
Building/var/yp/mysun.com/ypservers...
Running/var/yp/Makefile...
Updated passwd
Updated group
Updated hosts
Updated ipnodes
Updated ethers
Updated networks
Updated rpc
Updated services
Updated protocols
Updated netgroup
Updated bootparams
Updated publickey
Updated netid
/Usr/sbin/makedbm/etc/netmasks/var/yp/'domainname'/netmasks. byaddr;
Updated netmasks
Updated timezone
Updated auto. master
Updated auto. home
Updated ageing
Updated auth_attr
Updated exec_attr
Updated prof_attr
Updated user_attr
Updated audit_user