NIS – Network Information System WeeSan Lee

Slides:



Advertisements
Similar presentations
Kerberos: An Authentication Service for Open Network Systems Jennifer G. Steiner, Clifford Neuman, and Jeffrey I. Schiller Massachusetts Institute of Technology.
Advertisements

Resolving against moved files The setup: we have foo open for edit and want to submit, but it has been renamed, first to bar and then to ola. We need to.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
System Administration Final Project - Micro Computer Center hchung, hwchiu.
Introduction to MySQL Administration.  Server startup and shutdown ◦ How to manually start and stop it from the command line ◦ How to arrange an automated.
NIS Consistent configuration across the network. Why NIS? Primary reason is to provide same user configuration across the network Users go any machine.
PC Cluster Setup on Linux Fedora Core 5 High Performance Computing Lab Department of Computer Science and Information Engineering Tunghai University, Taichung,
User Account Management WeeSan Lee. Roadmap Add An Account Delete An Account /etc/{passwd,shadow} /etc/group How To Disable An Account? Root Account Q&A.
Winter CMPE 155 Week 6. Winter Yet more servers… NFS and NIS.
Winter 2005 CMPE 151: Network Administration Servers II.
Linux Networking TCP/IP stack – kernel controls the TCP/IP protocol – Ethernet adapter is hooked to the kernel in with the ipconfig command – ifconfig.
CIT 470: Advanced Network and System Administration
NFS – Network File System WeeSan Lee
Network File System CIS 238. NFS (Network File System) The most commercially successful and widely available remote file system protocol Designed and.
Remote Disk Access with NFS
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
Linux+ Guide to Linux Certification, Third Edition
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Windows interoperability with Unix/Linux. Introduction to Active Directory Integration for Unix and Linux Systems Unix/Linux interoperability components.
10/26/00Splitting Access Databases...1 Preparing for Access 2000 Windows 2000/Office 2000 Roll-out.
Lecture – Single Login NIS and Winbind. NIS Network Information Service (NIS) is the traditional directory service on UNIX platforms Still widely used.
The University of Akron Summit College Business Technology Dept.
Linux Networking #2 Dr. Michael L. Collard 1.
Chapter 10 Networking and the Internet ITSC 1458.
Final Project – NFS and NIS jwbai. Computer Center, CS, NCTU 2 Goal master.passwd passwd group netgroup amd.conf userA, /nis/home/userA userB, /nis/home/userB.
LSC Segment Database Duncan Brown Caltech LIGO-G Z.
Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://
ITI-481: Unix Administration Meeting 5. Today’s Agenda Network Information Service (NIS) The Cron Program Syslogd and Logging.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Introduction to CVMFS A way to distribute HEP software on cloud Tian Yan (IHEP Computing Center, BESIIICGEM Cloud Computing Summer School.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
Day 11 SAMBA NFS Logs Managing Users. SAMBA Implements the ability for a Linux machine to communicate with and act like a Windows file server. –Implements.
O.S.C.A.R. Cluster Installation. O.S.C.A.R O.S.C.A.R. Open Source Cluster Application Resource Latest Version: 2.2 ( March, 2003 )
Samba Server Configuration
Centralized logins with NIS Eric Stolten Tim Meade Mark Sidnam.
New SA Training Topic 6: Service Management Our organization takes advantage of many service type to provide functionality to users and ease management.
SAM Installation Lauri Loebel Carpenter and the SAM Team February
CIS 192B – Lesson 3 Network Information Services.
HotEx Radius Manager Installation. hotEx RADIUS Manager Network Diagram.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
1/14 Char 18 Sharing System Files Content –NIS(The Network Information Service) –NIS+
Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25.
178 Connecting to the Network Version A.01 H3064S Module 21 Slides.
1 Network Information System (NIS). 2 Module – Network Information System (NIS) ♦ Overview This module focuses on configuring and managing Network Information.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
NTU Cloud 2010/05/30. System Diagram Architecture Gluster File System – Provide a distributed shared file system for migration NFS – A Prototype Image.
System Administration HW5 - Micro Computer Center yihshih / lctseng.
CIS 192B – Lesson 2 Domain Name System. CIS 192B – Lesson 2 Types of Services Infrastructure –DHCP, DNS, NIS, AD, TIME Intranet –SSH, NFS, SAMBA Internet.
Linux Operations and Administration
Chap 35 Remote Procedure Calls RPC allows one host to make a procedure call that appears to be part of a local process (fig 35.1), but is really executed.
Small Business Server 2003 Linux Small Business Server versus Linux functionality.
1 Security of NIS (YP) Gary Lam
Distributed databases A brief introduction with emphasis on NoSQL databases Distributed databases1.
1 Example security systems n Kerberos n Secure shell.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
-Active Directory is the brain of the Microsoft windows Server Network. -It’s a database that keeps track of huge amount of stuffs and gives us a centralized.
Hesiod Jonathan Reed What is Hesiod? The Hesiod Name Service is an important component of Athena. Used transparently by Athena, user rarely.
Chapter 17: Sharing System Files Stephen Workman.
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
NIS Concepts and Configuration
Backup WeeSan Lee
Final Project Announce: Due:
Getting started with CentOS Linux
Communications & Computer Networks Resource Notes - Introduction
System Administration HW5 - Micro Computer Center
System Administration HW5 - Mini Private Lab
Announced Date: 2006/12/20 Due Date: 2007/1/3
Network Information Service
Client/Server and Peer to Peer
Presentation transcript:

NIS – Network Information System WeeSan Lee

Roadmap Motivation NIS How to setup a NIS server? How to setup a NIS client? Q&A

Motivation Router VMHost VM / Create an user foo on one machine. Can the user foo login on another machine? 2. User foo changes passwd on one machine. Can the user foo login on another machine with the new passwd? 3. User foo create a file bar on one machine. Can the user foo access bar on another machine? NIS NFS

NIS - Network Information System Released by Sun in 1980 Originally called Sun Yellow Pages Had to rename due to legal reasons But commands are all started with “yp”, eg. ypcat, ypwhich, ypinit, ypdomainname, etc Client-server model  A master server maintains the authoritative copies of system files, such as passwd, and makes the contents available over the network

NIS (cont) Support replication with slave servers  Changes on the master server need to be pushed using yppush command to the slaves if any Use Berkeley DB for fast lookup Each file might be translated into multiple NIS maps, eg. /etc/passwd  passwd.byname  passwd.byuid

How to setup a NIS server? $ yum install ypserv $ ypdomainname linux.is.better $ /etc/init.d/ypserv start For the master  $ /usr/lib/yp/ypinit -m For the slaves  $ /usr/lib/yp/ypinit -s $ cat /etc/yp.conf  domain linux.is.better server /etc/init.d/ypbind start NIS server daemon NIS client daemon. Need to be run on the server too. Will prompt you to add the slave servers. ^D to end.

How to setup a NIS server? (cont) To verify  $ ps auxw | grep yp  $ ypwhich  $ ypcat ypservers  $ ypcat passwd  $ ypcat group To run the NIS server automatically  Add the following line into /etc/sysconfig/network NISDOMAIN=linux.is.better  $ chkconfig ypserv on  $ chkconfig ypbind on  $ chkconfig yppasswdd on Only needed if you are allowing users to do yppasswd, ypchsh, …

How to sync data between Master and Slave NIS servers? From the slaves  $ ypxfr From the server  $ yppush Some sites use their own back-end databases and make NIS servers fetch the data from this central source Usually, a cron job will be used for this  /var/lib/yp/ypxfr_[12]perday  /var/lib/yp/ypxfr_1perhour

How to setup a NIS client? $ ypdomainname linux.is.better $ cat /etc/yp.conf  domain linux.is.better server /etc/init.d/ypbind start Add “nis” in the following lines in /etc/nsswitch.conf  passwd: files nis  group: files nis To debug  $ ypwhich  $ ypcat passwd  Try to login an user account

How to setup a NIS client? (cont) To run the NIS client automatically  Add the following line into /etc/sysconfig/network NISDOMAIN=linux.is.better  $ chkconfig ypbind on

How to setup a NIS client? (cont) To change a passwd on the NIS server  $ yppasswd To change a login shell on the NIS server  $ ypchsh

Reference LAH  Ch 17: Sharing System Files