Linux establishes a domain environment NIS

Source: Internet
Author: User

Hostname zou.com

Vim/etc/hosts

Service IP zou.com domain name zou.com host name

Vim/etc/sysconfig/network

Modify the host name to Zou.com

Nis_domain=zou.comn Domain

Ping zou.com Test

Nisdomainanme zou.com designated Domain name

Yum List | grep YPSERCV Yp-tools

Yum Isntall Ypserv Yp-tools

/etc/init.d/yperv start

Chkconfig Ypserv on

/etc/init.dyppasswdd start

Chkconfig Yppasswdd on

Create three users, assign a password

/usr/lib64/yp/ypinit-m starting the domain service, crtl+d creating the domain


Client

Rpm-qa | grep ypbind

Sytstem-config-authentication Select nis,zou.com, enter the service's IP


Server

Confirm that the iptables is closed, or that you have made the appropriate rules

TAIL/ETC/PASSWD See the new user at this time Su-user, will enter the terminal

Vim/etc/exports

/home 192.168.0.0/24 (Rw,no_root_squash)

Exportfs-rv

/etc/init.d/nfs restart

SHOWMOUNT-E Service IP remote detection



Client

Vim/etc/auto.master

/home/etc/auto.home

Cp/auto.misc/auto.home

Vim/etc/auto.home

*-RW,SOFT,INTR Clothing ip:/home/&



Reboot, you can log in with a new user, which is the domain user






This article is from the "Arctic Linux" blog, be sure to keep this source http://941012521.blog.51cto.com/9253690/1658512

Linux establishes a domain environment NIS

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.