Linux下NIS客户端机器不能使用普通用户(非root用户)登录!

现象:

        Linux机器上不能使用普通用户登录,登录时等待时间很长,不能登录,

        手动挂载NIS服务端的/home目录时,出现如下错误:

        do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable do_ypcall

        检查发现该台机器是NIS客户机器。

解决:

       启动NIS服务器的相关服务。

         /etc/init.d/portmap start
         /etc/init.d/ypserv start
         /etc/init.d/yppasswdd start

       启动NIS客户端的相关服务。

         /etc/init.d/ypbind start

       发现启动Failed!

       检查NIS服务器的配置文件 /etc/ypserv.conf 

   # The following, when uncommented,  will give you shadow like passwords.
   # Note that it will not work if you have slave NIS servers in your
   # network that do not run the same server as you.
   
   # Host                     : Domain  : Map              : Security
   #
   # *                        : *       : passwd.byname    : port
   # *                        : *       : passwd.byuid     : port
   127.0.0.0/255.0.0.0        : *       : *                : none
   10.10.104.0/255.255.255.0  : *       : *                : none
   192.168.0.0/255.255.255.0  : *       : *                : none
   *                          : *       : *                : deny

      然后查看客户机器的IP地址,发现不在以下网段内:

10.10.104.0/255.255.255.0

192.168.0.0/255.255.255.0

    检查发现客户机器网卡eth1没启动,该网卡的IP地址在网段  192.168.0.0/255.255.255.0 内。

   于是启动网卡eth1,然后再启动客户端的NIS相关服务。

    [root@gd87 ~]# /etc/init.d/ypbind start
    Binding to the NIS domain:
    Listening for an NIS domain server.

    然后客户机器便可以使用普通用户登录。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值