SUMMARY:A Newbie on NIS

ye feng (yefeng@ramm.neu.edu.cn)
Fri, 21 Nov 1997 08:55:34 +0800 (CST)

Hi all gurus

Severals days ago, I asked some questions about how to setup NIS. By now ,
I have got a lot of help.Many thanks to who helped me. Now, i summary it.

My original question is:
>
> I want to setup NIS on our lab's compter network. There are 7 unix machines
> in our lab , i want config the Sun Sparc II ( run with SunOS4.1.3) as the
> NIS master server , another Sun Sparc I+ (run with SunOS4.1.1) as NIS
> secondary server , and the rest 5 Pentium-133 PCs (run with Solaris 2.5/X86)
> as NIS client.
>
> I have no experience about setup NIS, and no idea of how to setup.
> Would you please give me some advises about it? Or any tutorial articles
> about it?Any wed site contains these articles will be very appriciated.
>

Help:

------------------------------------------------------------------------
If you do not have the Sun Network Administration manual or the NIS book
try looking at the NISkit documentation on http://docs.sun.com.
This explain the use of NIS aka YP (as opposed to NIS+) under
solaris 2.x. The setup for SunOS 4.x is not too different.

I hope this helps

Anthony Worrall
The University of Reading,
Department of Computer Science,
Whiteknights, PO Box 225
Reading,
Berkshire, UK
RG6 6AY
Tel: +44 (0)1734 318610
Fax: +44 (0)1734 751994
Email: Anthony.Worrall@Reading.ac.uk

-------------------------------------------------------------------------
Take a look at http://www.polaris.net/ugu/
It contains some information on NIS and NIS+.

> Regards,
> Derek Mallard Email: dmallard@shl.com
> Technical Architect Voice Mail: (403)412-2618
> SHL Systemhouse (403)423-4730
+------------------------------------------------------------+
| The statements/opinions expressed here are my own & do not |
| necessarily reflect or represent those of SHL Systemhouse |
+------------------------------------------------------------+

-------------------------------------------------------------------------
By the book titled "Managing NFS and NIS" from O'Reilly and Associates.
www.ora.com

-- 

Jason L. Harrell UNIX System Administrator John Steffen Associates St. Louis, MO 63146 jason@jsa.com ------------------------------------------------------------------------- Ye Feng,

There is a O'Relly book "NIS and NFS" which has very detailed the procedures about settting up NIS server client. The basic steps are outlined as following:

1. Created maps: This include passwd, group, protocols, aliases, services, netmasks, hosts, etc. You can copy these maps from /etc/directory and put them in a separate place, such as /var/yp/src 2. Modify /var/yp/Makefile to change the "DIR=" to reflect the map location, for example DIR=/var/yp/src 3. cat "<your domainname>" > /etc/defaultdomain 4. Run "domainname <your domainname" 5. Run "/usr/etc/yp/ypinit -m" to setup the server. ypinit will build the NIS maps.

Reboot the server

6. On the client machines, setup domains: cat "<your domainname>" > /etc/defaultdomain domainname <your domainname> Reboot the client.

Hope this helps,

Susan

------------------------------------------------------------------------- First, determine what your domain name and put them in /etc/defaultdomain file then run "domainname `cat /etc/defaultdomain`". On the master, run ypinit -m, and it'll ask you a few simple question. On the server, run ypbind first and then run ypinit -s <master> and again, it'll ask you a few simple questions. After that, on each clients, you can simply run ypinit -c or simply reboot.

-- Joel

--
Joel Lee <jlee@thomas.com> | Network Administrator/System Programmer 
Thomas Brothers Inc., Irvine, California | http://www.thomas.com   
   Disclaimer: The statements are my personal viewpoints only
       and has nothing to do with anyone, even my employer.