Linux下NIS用戶端機器不能使用普通使用者(非root使用者)登入!

來源:互聯網
上載者:User

現象:

        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.

    然後客戶機器便可以使用普通使用者登入。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.