NIS client settings and instances

Source: Internet
Author: User
The NIS client settings and the IP address of the instance nis server server1examplecomnis use the domain examplecomnis server to use port 866 & lt; --- optional & lt; --- after mstate settings, use the account nisuser4 to log on to the system, settings and instances of the user's home directory on the NIS client
The IP address of the nis server server1.example.com nis domain example.com nis server uses port 866 <--- optional <---m state .. after the settings, log on to the system using the account nisuser4. the home directory of the user is in/home/nisuser/nisuser4 (this directory does not exist on your local computer, and this directory only exists on the nis Server) 1. use graphical commands to configure NIS-related information # system-config-authentication 2. configure automatic mounting to automatically mount the user's home directory # vim/etc/auto. master/home/nisuser/etc/auto. home -- timeout = 60 # vim/etc/auto. home *-rw, soft, intr 192.168.0.254:/home/nisuser/& ^ 3. start services related to the nis client # c Hkconfig portmap on # chkconfig ypbind on # chkconfig autofs on # service portmap restart # service ypbind restart # service autofs restart 4. iptables setting iptables-I INPUT-m state -- state ESTABLISHED, RELATED-j ACCEPTiptables-a input-I lo-j ACCEPT iptables-A INPUT-p tcp-m multiport -- sport 111,866-j ACCEPTiptables-A INPUT-p udp-m multiport -- sport 111,866-j ACCEPT note: the port 866 is based on the server settings and is not notified. You do not need to add rules for this port. simply open port 111. In general, make sure that the first rule exists.
 
Related Article

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.