NIS Network Infomation Service

2009-05-13 13:14:22来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

NIS ﹝Network Information Service ﹞,當伺服器主機太多,管理帳號密碼太過麻煩時,我們找來了兩台不要的 PC,做 NIS ﹝Master/Slaver﹞ Server 主機帳號及密碼的集中驗證,Network Information Service 最早應該是稱為 Sun Yellow Pages ( 簡稱 yp ) ,也就是 Sun 這家公司出的一個名為 Yellow Pages 的伺服器軟體。
Description :
NIS Master Server FreeBSD 5.1 R ﹝Pentium / 100 RAM 32M ﹞IP:10.10.10.1
NIS Slaver  Server FreeBSD 4.8 R ﹝Pentium / 100 RAM 64M ﹞IP:10.10.10.2
Setp 1.
NIS Master Server 設定:
1. 修改檔案:
#vi /etc/rc.conf 加入:
hostname="mnis.ntut.idv.tw"portmap_enable="YES"nisdomainname="ntut-nisserver" # (自定 nisdonaimname) nis_server_enable="YES" # (開啟 NIS Server)nis_yppasswdd_enable="YES" nis_yppasswdd_flags="-t /etc/master.passwd"
2. 複製檔案並修改 Makefile 檔:
#cp /var/yp/Makefile.dist /var/yp/Makefile
修改 Makefile 加入這一行  MASTER_PASSWD=/etc/master.passwd 並將 NOPUSH = "True" 那一行註解掉。
3. 執行 #ypinit -m ntut-nisserver
=============出現以下畫面================
Creating an YP server will require that you answer a few questions.
Questions will all be asked at the beginning of the procedure.
Do you want this procedure to quit on non-fatal errors? [y/n: n]
Ok, please remember to go back and redo manually whatever fails.
If you don't, something might not work.
Can we destroy the existing /var/yp/Synology-ind and its contents? [y/n: n] 選 y
At this point, we have to construct a list of this domains YP servers.
alexwang.com is already known as master server.
Please continue to add any slave servers, one per line. When you are
done with the list, type a .
master server : mnis.ntut.idv.tw Setp 2.
NIS Slave Servr 設定:
1. 修改檔案 rc.conf 檔 #vi /etc/rc.conf 加入:
hostname="snis.ntut.idv.tw"portmap_enable="YES"nisdomainname="ntut-nisserver"nis_client_enable="YES" nis_server_enable="YES"nis_ypxfrd_enable="YES"
#vipw  將非系統本身的使用者移除,並在檔案最後加入下列一行:
+:::::::::
#vi /etc/group  將非系統本身的群組移除,並在檔案最後加入下列一行:
+:*::
2. 執行 ypinit -s  #ypinit -s mnis ntut-nisserver
Server Type: SLAVE Domain: test-domain Master: ellington
Creating an YP server will require that you answer a few questions.
Questions will all be asked at the beginning of the procedure.
Do you want this procedure to quit on non-fatal errors? [y/n: n] n
Ok, please remember to go back and redo manually whatever fails.
If you don't, something might not work.
There will be no further questions. The remainder of the procedure
should take a few minutes, to copy the databases from ellington.
Transferring netgroup...
ypxfr: Exiting: Map successfully transferred
Transferring netgroup.byuser...

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:MyDNS = MySQL + DNS

下一篇:FreeBSD 中DHCP Server 的設定