|
|
我在配置 nis 服务器 和nis 客户端时, 都没有出现错误提示信息, 而且服务启动成功
就是在nis客户端时 nis服务器的帐号登陆时, 怎样也登陆不上去
系统环境是as4
配置步骤 是
nis服务器;
#nisdomainame sina
# echo "/bin/nisdomainname" sina >> /etc/rc.d/rc.local
# echo "DOMAINNAME=sina" >> /etc/sysconfig/network
# vi /etc/ ypserv.conf
* :* :* : none
这个文件是系统默认配置,我没有任何改动
# vi /var/yp/securents
host 127.0.0.1
255.255.255.0 192.168.0.0
我所在的网段就是 192.168.0.0
# server portmap restart
# server ypserv start
# server yppasswdd start
这里没有任何错误提示!
# /usr/lib/yp/ypinit -m
next host to add : linux
这步建立数据库也没有提示错误信息
nis客户端配置
#echo "192.168.0.1 linux" >> /etc/hosts 192.168.0.1是nis服务器的ip地址
#echo "domain sina server linux" >> /etc/yp.conf
# vi /etc/nsswitch.conf
passwd: files nis
shadow: files nis
group: files nis
hosts: files nis dns
# server bybind start
到这一步 也是ok 没有错误提示
最后, 我在 nis服务器上建立了两个用户
#useradd tom
# passwd tom
# useradd java
# passwd java
然后再nis客户端使用tom和java 登陆时,就怎样也登不上去
防火墙和 selinux 我都关了
哪位朋友知道, 是哪里的问题吗???? |
|