In Linux, the NIS client machine cannot be logged on as a normal user (non-root user!

Source: Internet
Author: User
Tags domain server

Symptom:

You cannot log on from a common user on a Linux machine. It takes a long time to log on and cannot log on,

When you manually mount the/home directory of the NIS server, the following error occurs:

Do_ypcall: clnt_call: RPC: unable to send;Errno = network is unreachable do_ypcall

Check and find that this machine is an NIS client machine.

Solution:

Start services related to the NIS server.

/Etc/init. d/Portmap start
/Etc/init. d/ypserv start
/Etc/init. d/yppasswdd start

Start services related to the NIS client.

/Etc/init. d/ypbind start

Found to start failed!

Check the configuration file/etc/ypserv. conf of the NIS server.

# The following, when uncommented, will give you shadow like passwords.
# Note that it will not work if you have slave NIS servers in your
# Network that do not run the same server as you.

# HOST: domain: Map: Security
#
# *: Passwd. byname: Port
# *: Passwd. byuid: Port
127.0.0.0/255.0.0.0: *: None
10.10.104.0/255.255.255.0: *: None
 192.168.0.0/255.255.255.0: *: None
*: Deny

Check the IP address of the customer's machine and find that the IP address is not in the following CIDR blocks:

10.10.104.0/255.255.255.0

192.168.0.0/255.255.255.0

Check and find that the eth1 of the NIC of the customer machine is not started. the IP address of the NIC is in the CIDR block.192.168.0.0/255.255.255.0.

Start eth1, and then start the client's NIS-related services.

[Root @ gd87 ~] #/Etc/init. d/ypbind start
Binding to the NIS domain:
Listening for an NIS domain server.

Then, the customer's machine can log on as a normal user.

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.