NIS Network Infomation Service
2009-05-13 13:52:12来源:未知 阅读 ()
[url=javascript:;]NIS[/url]
﹝Network Information Service ﹞,當伺服器主機太多,
管理
帳號密碼太過麻煩時,我們找來了兩台不要的 PC,做 NIS ﹝Master/Slaver﹞ Server 主機帳號及密碼的集中驗證,Network Information Service 最早應該是稱為 Sun Yellow Pages ( 簡稱 yp ) ,也就是 Sun 這家
公司
出的一個名為 Yellow Pages 的伺服器軟體。
Description :
NIS Master Server
[url=javascript:;]FreeBSD[/url]
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.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Multipath support in the device mapper 2009-05-13
- FreeBSD 系统管理 2009-05-13
- /sys/i386/include/pmap.h中与页表相关宏值的含义 2009-05-13
- nmap - the port scanner 2009-05-13
- NIS Network Infomation Service 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash