close
伺服器端作業
1.安裝yp.conf 及ypserv.conf 套件
2.在/etc/sysconfig/network 中設定NISDOMAINNAME=nis domain name
3.#chkconfig ypserv on
   #service ypserv restart
4.設定限制存取NIS server 的網段 (預設檔案不存在)
    /var/yp/securenets
255.255.555.255      127.0.0.1
255.255.255.0          192.168.0.0
5.檢測ypserver 及啟動portmap 服務
#rpcinfo -u localhost yoserv
#service portmap restart
6.建立master NIS srever 資料庫(/var/yp/domainname)
#/usr/lib/yp/ypinit -m
7.若要允許使用者改變NIS 上的密碼,必須啟動yppasswdd
#chkconfig yppasswdd on
#service yppasswdd restart

Slave NIS之設定
1.安裝確認/var/yp/Markefile 的NOPUSH=false
2.執行ypinit -s 並指定master 的hostname
#/usr/lib/yp/ypinit -s master's hostname
3.執行yppush 將master 的資料傳給slave
#yppush -h client_ip

Client 端之設定
1.使用authconfig 指令設定使用NIS 認証及nisdomain

#authconfig



arrow
arrow
    全站熱搜

    奔騰兔 發表在 痞客邦 留言(0) 人氣()