nis setup - error resolution
TRANSCRIPT
NIS Setup – Error Resolution
# ypinit -m
The local host's domain name hasn't been set. Please set it.
IF ERROR ENCOUNTERED, FOLLOW THE COMMAND:
# domainname abc.com# domainname > /etc/defaultdomain
and continue to configure NIS
# ypinit -m
In order for NIS to operate sucessfully, we have to construct a list of the
NIS servers. Please continue to add the names for YP servers in order of
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: myhost
next host to add:
The current list of yp servers looks like this:
myhost
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] y
The yp domain directory is /var/yp/sol10.com
Can we destroy the existing /var/yp/sol10.com and its contents? [y/n: n] y
There will be no further questions. The remainder of the procedure should take
5 to 10 minutes.
Building /var/yp/sol10.com/ypservers...
Running /var/yp /Makefile...
updated passwd
updated group
updated hosts
updated ipnodes
make: Warning: Don't know how to make target `/var/yp/etc/ethers'
Current working directory /var/yp
updated networks
updated rpc
updated services
updated protocols
make: Warning: Don't know how to make target `/var/yp/etc/netgroup'
Current working directory /var/yp
make: Warning: Don't know how to make target `/var/yp/etc/bootparams'
Current working directory /var/yp
WARNING: local host name (myhost) is not qualified; see cf/README: WHO AM I?
/var/yp/sol10.com/mail.aliases: 12 aliases, longest 10 bytes, 138 bytes total
/usr/lib/netsvc/yp/mkalias /var/yp/`domainname`/mail.aliases /var/yp/`domainname`/mail.byaddr;
updated aliases
updated publickey
updated netid
/usr/sbin/makedbm /var/yp/etc/netmasks /var/yp/`domainname`/netmasks.byaddr;
updated netmasks
couldn't find /var/yp/etc/timezone
updated auto.master
updated auto.home
updated ageing
updated auth_attr
updated exec_attr
updated prof_attr
updated user_attr
updated audit_user
make: Warning: Target `all' not remade because of errors
Current working directory /var/yp
*** Error code 1
The following command caused the error:
if [ ! 1 ]; then make -k all; \
else make -k all NOPUSH=1;fi
make: Fatal error: Command failed for target `k'
Error running Makefile.
CREATING ETHERS FILE:
# vi /etc/ethersCC:CC:CC:CC:CC:CC client
EXAMPLE:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.254.128 netmask ffffff00 broadcast 192.168.254.255
ether 0:c:29:ae:5f:3c
# vi /etc/ethers
0:c:29:ae:5f:3c myhost
CREATING BOOTPARAMS FILE:
# cat /etc/bootparams
client root=nfsserver:/export/client/root
EXAMPLE
delta# cat bootparams
finland root=c92:/home1/jumpstart/2.7_HW899/software/Solaris_2.7/Tools/Boot install=c92:/home1/jumpstart/2.7_HW899/software boottype=:in install_config=c92:/home1/jumpstart/2.7_HW899/info rootopts=:rsize=32768
CREATING TIMEZONE FILE:
# grep TZ /etc/default/init
# TZ, LANG, CMASK, or any of the LC_* environment variables. value may
TZ=Asia/Manila
# vi /var/yp/etc/timezone
Asia/Manila myhost.mydomainname.com
CREATING NETGROUP FILE:
EXAMPLE:
# vi /var/yp/etc/netgroup
all_hosts (,,)
local_hosts remote_hosts
local_hosts \
(myhost,-,) \
remote_hosts \
(c2pc,-,) \