SRT210. The Pragmetic art of Administration. NIS Server. Raymond Chan

Similar documents
Network Information Service

Bull. AIX 5L Network Information Services (NIS and NIS+) Guide AIX ORDER REFERENCE 86 A2 56EM 01

Project #3: Implementing NIS

Sharing System Files

Parallel Panther Beowulf Cluster

7 Distributed File Systems

Cluster Computing Spring 2004 Paul A. Farrell 4/25/2006. Dept of Computer Science Kent State University 1. Configuring & Tuning Cluster Networks

Networking Operating Systems (CO32010)

Preface to the First Edition Preface to the Second Edition Acknowledgments UNIX Operating System Environment p. 1 UNIX: Past and Present p.

System Administration HW5 - Micro Computer Center. yihshih / lctseng

Centrify's Solution for NIS Migration

IT341 Introduction to System Administration Project II Configuring and Using a LAN

Answer(s): B. Answer(s): A B D A slave server calls ypxfr when yppush is executed on the master server.

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

Advanced Network and System Administration. Accounts and Namespaces

System Administration

Internet. Labs for BTACS, Major in Computing, and CSOM. Campus Router KIDNEY. Switch. Hub Hub. Access Point C62. Page

Symbolics Network File System (NFS) User s Guide. Introduction to Symbolics Network File System (NFS)

UNDERSTANDING THE NIS TO LDAP SERVICE (N2L) ARCHITECTURE

CL030 is a csage Certification Preparatory Course!

Solaris Naming Services Architecture

HYPER-UNIFIED STORAGE. Nexsan Unity

Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the other 3(4) nodes.

1Z0-100 oracle.

A new name server architecture. John Schimmel, Larry McVoy & Andrew Chang. Silicon Graphics Engineering

Network Interface Installation. Varian, Inc. NMR Systems Pub. No , Rev. A1103

NCS490 Date Assigned: 11/03/14 Ronny L. Bull Due Date: 11/15/14

Protection! User Guide. A d m i n i s t r a t o r G u i d e. v L i c e n s i n g S e r v e r. Protect your investments with Protection!

Cluster Computing Spring 2004 Paul A. Farrell

Construction of Parallel Machines for Engineering Courses with Retired Personal Computers

Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the all nodes.

Practical Methods to Begin Parallel Processing Education and Research

Please choose the best answer. More than one answer might be true, but choose the one that is best.

OPS535. NFS Servers and Clients. Advanced TCP/IP Network Administration. Raymond Chan Seneca College of Applied Technology

Configuring Linux as an NIS Client

HP-UX System Administration

Course Outline: Linux Professional Institute-LPI 202. Learning Method: Instructor-led Classroom Learning. Duration: 5.00 Day(s)/ 40 hrs.

CTEC1863/2018F Bonus Lab Page 1 of 5

Sun Certified System Administrator for the Solaris 10 OS Bootcamp

Network Protocols What is a stateless Network Protocol?

Commands are in black

NIS to LDAP Transition: Exploring

Network Configuration

Chapter 14. Configuring Linux Network Services Part 1 DHCP and DNS service

Installing and Administering Internet Services

Solstice AdminSuite 2.3 Administration Guide. Sun Microsystems, Inc. 910 San Antonio Road Palo Alto, CA U.S.A.

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

SSSD. Client side identity management. LinuxDays 2012 Jakub Hrozek

This course is for those wanting to learn basic to intermediate topics in Solaris 10 system administration.

Instruction for Upgrade Solaris 7 to Solaris 8

Integrated Laboratory Network Management System

RH-202. RedHat. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

0Activity Answers. Table A1-1: Operating system elements and security mechanisms. The Security Accounts Manager (SAM)

Configuring the JUNOS Software the First Time on a Router with a Single Routing Engine

Lab Configuring the PIX Security Appliance as a DHCP Server

A/UX Network System Administration

Tivoli Provisioning Manager for OS Deployment Installation on W2003R2-NFS-MySQL

HP HP-UX Networking and Security. Download Full Version :

Nimsoft Monitor Server

LAN Setup Reflection

Exam : 1Z Title : Enterprise Linux System Administration. Version : DEMO

The Samba-3: Overview, Authentication, Integration

Setting up DHCP, DNS and NFS on the CLTC Server

Check the FQDN of your server by executing following two commands in the terminal.

Subtitle: Join Sun Solaris Systems to Active Directory with Likewise

TELE 301 Lecture 8: Post

SAPinst Troubleshooting Guide for SAP Web AS Java Installation

Linux Cluster Manager User s Guide

Preview. Review. System Data Files (Password File) System Data Files (Password File) System Data Files (Password File)

DNS & DHCP CONFIGURATION

Users, Groups and Permission in Linux

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6

Information System Audit Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)

Admin Guide ( Unix System Administration )

101.1: DEMO? - Change BIOS settings - change boot device, disable devices

EL Serial Port Server Installation Guide Errata

CompTIA Exam LX0-102 Linux Part 2 Version: 10.0 [ Total Questions: 177 ]

Name Services and DNS

Linux+ Guide to Linux Certification, Third Edition. Chapter 12 Network Configuration

OPS535 Lab 5. Dynamic DNS. RFC 2136 Dynamic Updates in the Domain Name System (DNS UPDATE)

The PC NetLink Software Architecture

System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

OPERATING SYSTEMS LINUX

CSE 265: System and Network Administration

System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

Much is done on the Server, it20:

Unit 17 Networking overview

Network+ LAB Name. Lab 1a: MS Win 2000/2003/2008 Server Installation

1. What command is used to count the total number of lines, words, and characters contained in a file? A. countw B. wcount C. wc D.

Disaster Recovery on the Sun Cobalt Qube 3 Appliance with Third-Party Software

Connection Broker Managing User Connections to Workstations and Blades, OpenStack Clouds, VDI, and More

UNIT V. Dr.T.Logeswari. Unix Shell Programming - Forouzan

Chapter 5: User Management. Chapter 5 User Management

Centrify Infrastructure Services

Samba in Business. John H Terpstra

Answers to Even- Numbered Exercises

NovoalignMPI User Guide

RedHat. Rh202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

Q&As. LPI Level 2 Exam 202. Pass Lpi Exam with 100% Guarantee. Free Download Real Questions & Answers PDF and VCE file from:

User Management. René Serral-Gracià Xavier Martorell-Bofill 1. May 26, Universitat Politècnica de Catalunya (UPC)

Transcription:

1 SRT210 The Pragmetic art of Administration NIS Server Raymond Chan Seneca College of Applied Technology School of Information & Communications Technology

2 What is NIS? A Name Service developed by Sun Microsystems Formerly known as Sun Yellow Pages (YP) (most NIS program names begin with yp ) The name Yellow Pages TM is a registered trademark in the United Kingdom of British Telecom and Sun Microsystems was required to drop that name and rename it to NIS

3 Why NIS? To make the use of network services transparent to the user (Network user accounts) To make it easier to manage the network (no need to duplicate information unnecessarily) To improve data consistency stores important administrative information centrally To make the system/network administrator's life much easier

4 NIS Objective To provide information, that has to be known throughout the network, to all machines on the network. Login names/passwords/home directories/host name to IP mapping (/etc/passwd, /etc/shadow, /etc/hosts) Group information (/etc/group) Host name/ip mapping (/etc/hosts)...

5 How does NIS work? At lease one NIS server, which keeps the NIS databases (aka map file), running on the network. NIS server listens to requests from NIS Clients for name service (ns). NIS Clients communicate with the NIS Server by using Remote Procedure Calls (RPCs) NIS Clients only contact NIS Server in the same Domain (NIS domain, not DNS domain)

6 NIS Components Domains (can be set in /etc/sysconfig/network) Maps ( stored in /var/yp/[nis domain name]/) Daemons (ypserv, ypbind, etc...) Utilities (ypcat...) NIS Command Set (as an exercise)

7 NIS Domain NIS Domain is a collection of machines that share a common set of NIS maps Each Domain has a Domain name Each Machine sharing the common set of maps belongs to that domain Domain names are case sensitive Any machine can belong to a given domain provided there is a server for that domain

8 NIS Maps NIS maps are essentially two column tables Key Information related to the key A set of NIS Maps are maintained on the NIS master server NIS slave server gets copies of the NIS maps from the master server Configuration stored in /var/yp/makefile

9 NIS Daemons NIS Service is provided by five daemons: ypserv NIS server process ypbind NIS client binding process ypxfr master to slave map transfer process rpc.yppasswd NIS password update process rpc.ypupdated modifies maps

10 NIS Utilities makedbm creates dbm file for an NIS map ypcat lists data in a map ypinit builds and installs an NIS database and initializes NIS client's ypservers list ypmatch finds a specific entry in a map yppoll gets a map order number from a server

11 NIS Utilities yppush propagates data from NIS master to NIS slave server ypset sets binding to a particular server ypwhich lists name of the NIS server and nickname translation table ypxfr transfers map data from master to slave NIS server

12 NIS Commands Command ypserv ypbind Description Services NIS clients' requests for information from a NIS map. Ypserv is a daemon that runs on NIS servers with a complete set of maps. At least one ypserv daemon must be present on the network for NIS service to function. Bind to a ypserv process that serves maps within the domain of the requesting client. Ypbind must run on all servers and clients

13 NIS Commands (2) Command ypinit Description Automatically creates maps for an NIS server from the input files. Use ypinit to setup the master and slave NIS servers for the first time. make Use make to updates NIS maps by reading the Makefile (when run in the /var/yp directory) Refer to the ypmake man page for more details.

14 Command line Machine & Domain Name Use hostname to set machine name Use domainname= to set NIS domain name Files : /etc/sysconfig/network set machine name at boot time with HOSTNAME=your host name set NIS domain name at boot time with NISDOMAIN=your nis domain name

15 Server Configuration Prepare the master server place the source files in the proper directories for creating the NIS maps (normally in /etc ) Modify NIS master server configuration file /var/yp/makefile Start the NIS daemons on the NIS master server Create NIS databases map files on the NIS server Configure NIS slave server (if needed)

16 NIS Master Server Check the contents of the following source files (group A files) and copy them to a directory of your choice : /etc/hosts /etc/passwd /etc/services /etc/protocols /etc/networks /etc/group /etc/rpc /etc/aliases

17 Master Server Configuration File /var/yp/makefile Back it up first > /var/yp/makefile.org NOPUSH Y(One Server)/N(Slave Server) MINUID=1000 MINGID=1000 MERGE_PASSWD(/etc/shadow) MERGE_GROUP(/etc/gshadow)

18 Create the Map files Set the NIS Domain Name (How?) Start the NIS Server (ypserv) Use the following ypinit command to build a fresh set of NIS maps base on the information in /var/yp/makefile # /usr/lib/yp/ypinit m Or /usr/lib64/yp/ypinit m on a 64 bit system

19 Starting NIS Service Starts automatically at system boot chkconfig level 35 ypserv on Starts at command line: service ypserv start

20 Stopping NIS Service Use the following command: service ypserv stop Turn off ypserv for good: chkconfig level 12345 ypserv off

21 Questions Q & A