티스토리 뷰

EN/Fedora 18

Fedora 18 Configure NIS Server

식빵TV 2016.04.17 22:01

Fedora 18 Configure NIS Server


Configure NIS Server in order to share users' accounts in your local networks.


[root@otaec ~]# yum -y install ypserv rpcbind

[root@otaec ~]# ypdomainname server.world   # set NIS domain name


[root@otaec ~]# vi /var/yp/Makefile

# MERGE_PASSWD=true|false

# line 50: change

MERGE_PASSWD=false

# MERGE_GROUP=true|false

# line 54: change

MERGE_GROUP=false

# line 125: add

all: passwd shadow group hosts rpc services netid protocols


[root@otaec ~]# vi /var/yp/securenets

 255.255.255.0   10.0.0.0


[root@otaec ~]# vi /etc/hosts

# add own IP address

10.0.0.30   otaec.server.world otaec


[root@otaec ~]# systemctl start rpcbind.service 

[root@otaec ~]# systemctl start ypserv.service 

[root@otaec ~]# systemctl start yppasswdd.service 

[root@otaec ~]# systemctl enable rpcbind.service 

[root@otaec ~]# systemctl enable ypserv.service 

[root@otaec ~]# systemctl enable yppasswdd.service 


[root@otaec ~]# /usr/lib64/yp/ypinit -m # update NIS database

At this point, we have to construct a list of the hosts which will run NIS servers. otaec is in the list of NIS server hosts. Please continue to add the names for the other hosts, one per line. When you are done with the

list, type a <control D>.

next host to add: otaec.server.world

next host to add:# Ctrl + D key

The current list of NIS servers looks like this:

otaec

Is this correct? [y/n: y] y# answer yes

We need a few minutes to build the databases...

Building /var/yp/server.world/ypservers...

Running /var/yp/Makefile...

gmake[1]: Entering directory `/var/yp/server.world'

Updating passwd.byname...

Updating passwd.byuid...

Updating shadow.byname...

Updating group.byname...

Updating group.bygid...

Updating hosts.byname...

Updating hosts.byaddr...

Updating rpc.byname...

Updating rpc.bynumber...

Updating services.byname...

Updating services.byservicename...

Updating netid.byname...

Updating protocols.bynumber...

Updating protocols.byname...

Updating mail.aliases...

gmake[1]: Leaving directory `/var/yp/server.world'

otaec has been set up as a NIS master server.

Now you can run ypinit -s otaec on all slave server.

# It's neccessary to update NIS database with following way if new user is added again

[root@otaec ~]# cd /var/yp 

[root@otaec yp]# make 



'EN > Fedora 18' 카테고리의 다른 글

Fedora 18 Configure FreeIPA Server  (0) 2016.04.17
Fedora 18 Configure NIS Client  (0) 2016.04.17
Fedora 18 Configure NIS Server  (0) 2016.04.17
Fedora 18 NFS Server  (0) 2016.04.17
Fedora 18 Virtualization KVM Nested KVM  (0) 2016.04.17
Fedora 18 Virtualization KVM SPICE Server  (0) 2016.04.17
댓글