- 论坛徽章:
- 0
|
实验网络:
已经存在dns.example.com ,另一台做为客户机的abc.example.com,决定架一台nis.example.com;DNS设定正确,可以正向/反向解析。
在nis.example.com上:
vim /etc/rc.conf
加入:
nisdomainname="nis-example"
nis_server_enable="YES"
nis_yppasswdd_enable="YES"
/etc/netstat restart
pw groupadd admin
pw useradd tom -g admin -s /usr/local/bin/bash -m
passwd tom
cp /etc/master.passwd /var/yp/master.passwd
cd /var/yp
vim master.passwd
删除所有项,除了tom开头的那一项。
ypinit -m nis-example
...
Do you want this procedure to quit on non-fatal errors? [y/n: n] n
...
master server : nis.example.com
next host to add: abc.example.com
next host to add: ^D
The current list of NIS servers looks like this:
nis.example.com
abc.example.com
Is this correct? [y/n: y] y
Building /var/yp/nis-example/ypservers...
Running /var/yp/Makefile...
...
Updateing hosts.byaddr...
yp_mkdb:duplicate key '192.249.249.8' - skipping
yp_mkdb: failed to send 'clear' to lcoal ypserv: RPC: Port mapper failure
重复上面两行
我就只有^C中止了。
关于/var/yp/master.passwd我只是有一行内容:
tom 1$pVXBHyasdfal.34jk70iB/7Uo1nh.:1001:1001::0:0:User &:/home/tom:/usr/local/bin/bash
请教:
怎么解决?? |
|