某些用户的NIS登录失败

时间:2019-06-18 11:01:53

标签: linux unix fedora sysadmin nis

两个具有相同密码的用户,一个登录失败,另一个登录NIS客户端

来自NIS客户端用户1

[root@nis-client]# ypcat -t shadow.byname | grep user1
user1:8x4JZ49Z1Yn9M:18052::17275::::

来自NIS客户端用户2

[root@nis-client]# ypcat -t shadow.byname | grep user2
    user2:8x4JZ49Z1Yn9M:17974::17450::::

所有通信均按预期进行

[root@nis-client]# ypwhich -m 
shadow.byname nisserver
netid.byname nisserver
group.bygid nisserver
group.byname nisserver
passwd.byuid nisserver
passwd.byname nisserver
timezone.byname nisserver

Ypbind服务正在客户端上运行

[root@nis-client]# systemctl status ypbind 
● ypbind.service - NIS/YP (Network Information Service) Clients to NIS Domain Binder
   Loaded: loaded (/usr/lib/systemd/system/ypbind.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-06-18 03:29:25 PDT; 30min ago
  Process: 4733 ExecStartPost=/usr/libexec/ypbind-post-waitbind (code=exited, status=0/SUCCESS)
  Process: 4726 ExecStartPre=/usr/sbin/setsebool allow_ypbind=1 (code=exited, status=0/SUCCESS)
  Process: 4721 ExecStartPre=/usr/libexec/ypbind-pre-setdomain (code=exited, status=0/SUCCESS)
 Main PID: 4729 (ypbind)
   Status: "Processing requests..."
   CGroup: /system.slice/ypbind.service
           └─4729 /usr/sbin/ypbind -n

这是NIS服务器

对于User-1

[root@ nisserver]# ypcat -t shadow.byname | grep user1
        user1:8x4JZ49Z1Yn9M:18052::17275::::

对于用户2

[root@ nisserver]# ypcat -t shadow.byname | grep user2
   user2:8x4JZ49Z1Yn9M:17974::17450::::

测试 用户1通过

Desktop-$ ssh user1@nis-client
user1@nis-client's password: 
Last login: Tue Jun 18 03:28:39 2019 from 10.66.71.84

用户2失败

Desktop-$ ssh user2@nis-client
user2@nis-client's password: 
Permission denied, please try again.

0 个答案:

没有答案