我在虚拟机上的 Centos7 上运行了 NIS 服务。我还安装了另一台Centos7虚拟机作为客户端。所以我想从我的客户端虚拟机连接到服务器虚拟机。
在客户端虚拟机“systemctl status ypbind”返回运行。我在服务器上添加了一些用户,但无法在客户端切换用户。这是“yptest”命令返回的内容:
[root@www ~]# yptest
Test 1: domainname
Configured domainname is "topipi.jp"
Test 2: ypbind
Used NIS server: nis.topipi.jp
Test 3: yp_match
WARNING: No such map in server's domain (Map passwd.byname, key nobody)
Test 4: yp_first
WARNING: No such map in server's domain (Map passwd.byname)
Test 5: yp_next
-- skipped --
Test 6: yp_master
WARNING: No such map in server's domain (Map passwd.byname)
Test 7: yp_order
WARNING: No such map in server's domain (Map passwd.byname)
Test 8: yp_maplist
netid.byname
group.bygid
group.byname
passwd.byuid
passwd.byname
mail.aliases
protocols.byname
protocols.bynumber
services.byservicename
services.byname
rpc.bynumber
rpc.byname
hosts.byaddr
hosts.byname
ypservers
Test 9: yp_all
WARNING: No such map in server's domain (Map passwd.byname)
5 tests failed
这是我得到的错误:
[root@www ~]# su - Mahan
su: user Mahan does not exist
其中 Mahan 已被添加为服务器上的用户。我应该怎么办?
这就是我在服务器上输入“yptest”时得到的结果:
[root@nis home]# yptest
Test 1: domainname
Configured domainname is "topipi.jp"
Test 2: ypbind
Can't communicate with ypbind