Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Setting Up The Client


To set up the NIS client on Festival (101.16):



  festival$ wajig install netbase portmap nis

You will be asked the name of the nis domain. You must use the name you supplied to the master server (ktnet). It is stored in /etc/defaultdomain.

Specify the NIS server address in /etc/yp.conf:



  ypserver 192.168.0.4

Restart the client:



  $ wajig restart nis

You can test that the client can access the server with:

  $ ypcat passwd

This should list the users available from the server.

Now edit the passwd, shadow, group and gshadow files. In passwd remove all the users (anyone with a user id in the 1000's) and add:



+::::::

And in shadow:



+::::::::

Then in groups and gshadow files, similarly remove the users and add:



+:::

NIS should now be working. Certainly ypcat passwd should show the users in NIS.

When adding a new user, add the user on the server (with adduser) and then you may need to rerun /usr/lib/yp/ypinit -m, or perhaps it is make -C /var/yp.

Copyright © 1995-2006 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire