How to replace NIS master server with NIS slave server

Source: Internet
Author: User


To replace an NIS master server from an NIS slave server:


1. Modify the/etc/default/NIS file (the content is the same as that of the NIS master server, omitted)


2. Copy the/etc/passwd,/etc/shadow,/etc/group, and/etc/netgroup files of the NIS master server to the NIS slave server, copy the valid information to the NIS slave Server File.


3. Restart ypbind.


# Service ypbind stop


# Ypbind-broadcast


4. Write existing account information (that is, account information copied from the NIS master server) to the database


#/Usr/lib/yp/ypinit-M (only write yourself if there is no NIS slave server)


CTRL + d

# Service ypserv restart


This article is from the "Linux" blog and will not be reproduced!

How to replace NIS master server with NIS slave server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.