Chinaunix首页 | 论坛 | 博客
  • 博客访问: 111114
  • 博文数量: 37
  • 博客积分: 85
  • 博客等级: 民兵
  • 技术积分: 370
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-22 16:07
文章分类

全部博文(37)

文章存档

2014年(17)

2013年(17)

2012年(3)

我的朋友
nis

分类: LINUX

2013-01-21 15:40:36

Requires:

1. yp-tools: provide some commands about NIS checking.

2. ypbind: provide NIS Client.

3. ypserv: provide NIS Server.

4. portmap: RPC

 

NIS Server:

1. /etc/ypserv.conf: main conf file.

2. /usr/sbin/ypserv: command about daemon.

3. /usr/sbin/rpc.yppasswdd: daemon about RPC.

4. /usr/sbin/rpc.ypxfrd: daemon about RPC.

5. /usr/lib/yp/ypinit: command about database.

 

tools provided by yp-tools:

1. /usr/bin/yppasswd: change your password in the NIS database.

2. /usr/bin/ypchsh: change your shell in the NIS database.

3. /usr/bin/ypchfn: change your information in the NIS database.

 

Step:

1. /etc/init.d/portmap start

2. #nisdoaminname cluster

3. add NISDOMAIN=cluster in /etc/sysconfig/network

4. change ypserv.conf e.g. add this line(NIS Client segment/255.255.255.0 : * : * : none) into /etc/ypserv.conf

5. touch /etc/netgroup

6. /etc/init.d/ypserv start

7. /etc/init.d/yppasswdd start

8. /usr/lib/yp/ypinit -m add datadabe name. e.g. server.cluster

9. repeat step6, 7

 

NIS Client:

1. ypbind

2. yp-tools

3. /etc/yp.conf: set NIS Server domain

4. /etc/hosts: set NIS Server IP and domain

5. /etc/passwd: point out content

6. /etc/nsswitch.conf: point out daemon about account and password

 

Step:

1. /etc/init.d/portmap start

2. add the NIS Server IP and domain in the /etc/hosts on NIS Client.

3. nisdomainname cluster

4. add NISDOMAIN=cluster in /etc/sysconfig/network

5. add +:::::: in the last line /etc/passwd

6. add the below lines in /etc/nsswitch.conf passwd: files nis nisplus shadow: files nis nisplus group: files nis nisplus hosts: files nis dns

7. /etc/init.d/ypbind start

 

Test:

1. yptest: check the content, database of NIS

2. ypwhich: check files between NIS Client and NIS Server

3. ypcat: get password information about NIS Server

阅读(955) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~