NIS: ypserv and ypbind setup 05/31/2010

Preparation 2 virtual machines.

1. test two computer`s ip, hostname, and network configuration.




make sure the two computers can ping each other`s ip

2.install ypserv on

yum install 杫 ypserv

vim /etc/ypserv.conf

change the last line, delete# at the beginning to open the listening port

service ypserv start


service ypserv restart

3. Set the ypbind on

authconfig nablenis isserver= update

make sure selinux enable ypbind

setsebool -P allow_ypbind=1

now restart ypbind

service ypbind restart

to see if it is working properly

4.create some users on , change their passwords, 
then use login those users

[root@ls ~]# ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it. password: 
Last login: Sun May 30 22:52:14 2010 from
Could not chdir to home directory /home/tonyp: No such file or directory
we can see user tonyp-which is a user of can login through NIS. 
And because there is no NFS settings yet user tonyp can not find its home dir on


About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.


Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

This week518
This month2591

Visitor Info

  • IP:
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online