免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1481 | 回复: 0
打印 上一主题 下一主题

NIS 设定问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-02 10:54 |只看该作者 |倒序浏览
实验网络:
已经存在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我只是有一行内容:
tom1$pVXBHyasdfal.34jk70iB/7Uo1nh.:1001:1001::0:0:User &:/home/tom:/usr/local/bin/bash

请教:
怎么解决??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP