Chapter 17: Sharing System Files Stephen Workman.

Slides:



Advertisements
Similar presentations
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Advertisements

Naming Computer Engineering Department Distributed Systems Course Asst. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2014.
NIS Consistent configuration across the network. Why NIS? Primary reason is to provide same user configuration across the network Users go any machine.
3.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 3: Introducing Active Directory.
NIS – Network Information System WeeSan Lee
Hands-On Microsoft Windows Server 2003 Networking Chapter 7 Windows Internet Naming Service.
Chapter 12 Reading assignment n From “Running Linux”, on reserve at PSU Main library (2-hour checkout) Chapter 1 (pages 1 through 41)Chapter 1 (pages 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
CIT 470: Advanced Network and System Administration
1 Network File System. 2 Network Services A Linux system starts some services at boot time and allow other services to be started up when necessary. These.
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Overview of Active Directory Domain Services Lesson 1.
Windows interoperability with Unix/Linux. Introduction to Active Directory Integration for Unix and Linux Systems Unix/Linux interoperability components.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
Lecture – Single Login NIS and Winbind. NIS Network Information Service (NIS) is the traditional directory service on UNIX platforms Still widely used.
1 Web Server Administration Chapter 9 Extending the Web Environment.
Chapter 10 Networking and the Internet ITSC 1458.
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.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
2002 Networking Operating Systems (CO32010) 1. Operating Systems 2. Processes and scheduling 3.
Inetd...Server of Servers Looks at a number of ports Determines when a service is needed on any of those ports Calls the appropriate server Restarts new.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
Centralized logins with NIS Eric Stolten Tim Meade Mark Sidnam.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
New SA Training Topic 6: Service Management Our organization takes advantage of many service type to provide functionality to users and ease management.
 Identify Active Directory functions and Benefits.  Identify the major components that make up an Active Directory structure.  Identify how DNS relates.
CIS 192B – Lesson 3 Network Information Services.
Chapter 10: Rights, User, and Group Administration.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
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+
1 Network Information System (NIS). 2 Module – Network Information System (NIS) ♦ Overview This module focuses on configuring and managing Network Information.
1 Chapter Overview Managing Object and Container Permissions Locating and Moving Active Directory Objects Delegating Control Troubleshooting Active Directory.
Linux Operations and Administration
1 CMPT 471 Networking II DNS © Janice Regan,
1 Security of NIS (YP) Gary Lam
Directory Services CS5493/7493. Directory Services Directory services represent a technological breakthrough by integrating into a single management tool:
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
1 Example security systems n Kerberos n Secure shell.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Back it up – Don't be a fool!
Guide to Operating Systems, 5th Edition
Windows interoperability with Unix/Linux
Chapter 7: Using Windows Servers
Tonga Institute of Higher Education IT 141: Information Systems
Chap-I Network and System Configuration in Linux
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
CIT 470: Advanced Network and System Administration
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 6: Planning, Configuring, And Troubleshooting WINS.
Chapter 11: Managing Users
Overview of Active Directory Domain Services
NIS Concepts and Configuration
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Configuration for Network Security
Introduction to Networks
Tonga Institute of Higher Education IT 141: Information Systems
Final Project Announce: Due:
CIT 470: Advanced Network and System Administration
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tonga Institute of Higher Education IT 141: Information Systems
Planning and Storyboarding a Web Site
Sharing System Files.
Sharing System Files.
Sharing System Files.
Sharing System Files.
Announced Date: 2006/12/20 Due Date: 2007/1/3
APACHE WEB SERVER.
Network Information Service
Presentation transcript:

Chapter 17: Sharing System Files Stephen Workman

Sharing System Files Tens (or hundreds) of configuration files per host Many hosts on network How do you manage these thousands of configuration files?

File Copying Systems A master copy of each configuration file is kept in one place and is distributed to members of the group. this solution is simple it works on every Linux (and UNIX) system easy to set up and maintain clients can miss updates ANY change must propagate to EVERY host

Central Database Server Each machine obtains its configuration information from a central database clients can't miss updates, even if they are down when a change is made entire network can hang if server goes down quite a few files are not supported by any of the common database services; copying files may still be needed NIS and LDAP are a few examples (more on this later)

Commonly Shared Files /etc/passwd /etc/shadow /etc/group /etc/hosts /etc/networks /etc/services /etc/protocols /etc/ethers /etc/mail/aliases /etc/rpc /etc/netgroup /etc/cups/printcap /etc/printcap.cups /etc/termcap

File Copying Systems Push Model master server periodically distributes the freshest files to each client Files can be pushed when a change is made or on a regular schedule Pull Model client responsible for updating itself less centralized, but more adaptable and secure

rdist pushes files easiest way to distribute files from a central server rdist uses a control file to manage changes distfile or Distfile

rdist Server Side: Distfile label: pathnames -> destination commands label associates name with the statement rdist label distributes only files described in line pathnames and destinations are lists of files to be copied hosts to copy them to by default rdist copies the files and directories listed in pathnames to the equivalent paths on each destination machine

Supported Commands install options [destdir]; notify namelist; except pathlist; except_pat patternlist; special [pathlist] string; cmdspecial [pathlist] string; p507

Distfile Example

Client Side you must tell sshd on the clients to trust the host from which you are distributing files generate a plaintext key for the master host and store a copy of the public portion in the file ~root/.ssh/authorized_keys

rsync similar to rdist, but can run as a pull or push doesn't use a file-copying control file transmits differences in files instead of whole files main advantage is that receiving machine can run the remote side as a server process out of xinetd or inetd you cannot rsync to multiple hosts at once or execute arbitrary commands on the client

rsync Server Side rsync -gopt --password-file=/etc/rsync.pwd /etc/passwd boulder::sysfiles -gopt: preserves group, owner, permissions, and modification times the password in /etc/rsync.pwd authenticates the connection the '::' makes rsync contact the remote rsync directly on port 873 instead of using ssh /etc/passwd is transfered to boulder

Client Side: rsyncd.conf

rdist vs. rsync rdist more flexible and configurable can execute arbitrary commands on clients push only rsync more secure push or pull can't execute arbitrary commands on clients can't rsync to multiple hosts at once

Pulling Files Easiest way is to use ftp wget ftp transmits data in plain text bad bad bad rsync can be set up to pull as well slightly more complex than ftp, but all the benefits of rsync

NIS: Network Information Service A little history released in the 1980s originally called the Sun Yellow Pages commands still begin with yp supported by every Linux distribution

NIS: The record record unit of sharing is not a file, but a record record corresponds to one line in a config file master server maintains the authoritative copies of system files in their original locations data files (stored in /var/yp) preprocessed into hash library after files are edited, running make will convert them into their hashed formats only one key per entry (several maps per file) /etc/passwd into passwd.byname and passwd.byuid

NIS: Slave Servers NIS allows you to replicate maps on a set of slave servers relieves the load on the master clients can still work even if some servers are down a change on the master is propagated down to the slave servers clients cannot distinguish between master and slaves NIS domains listed under /etc/yp.conf one line for each server

Important NIS Commands and Daemons Daemons ypserv ypbind ypxfrd yppasswdd Commands domainname ypxfr yppush ypset yppoll ypcat yppasswd

Slave Servers Map ypservers contains a list of all the servers in the domain automatically constructed when the domain is set up (by ypinit) examined when master needs to distribute maps to slaves

NIS: How it Works NIS's data files are stored in /var/yp 1 map for each key by which a file can be searched /var/yp/cssuns/passwd.byname /var/yp/cssuns/passwd.byuid A makefile in /var/yp generates all the common NIS maps after modifying a system file cd to /var/yp and run make

Moving Maps to Slave Servers ypxfr this is a pull command and must be run from the slave usually run every so often to ensure most recent maps cron yppush instructs a slave server to execut ypxfr

Server Side: Setting up NIS domain Master Server cd /var/yp /*The NIS directory*/ domainname foo/*Name the new domain*/ /usr/lib/yp/ypinit -m/*Initialize as master server*/ ypserv/*Start the NIS server*/ Slave Server cd /var/yp /usr/lib/yp/ypinit -s master ypserv

Access Control Options /etc/ypserv.conf

Configuring NIS clients Need to inform clients that they are a member of the new domain (servers are generally clients too) domainname name command sets a machine's NIS domain edit /etc/nsswitch.conf chkconfig ypbind on There are some distribution differences...

LDAP: Lightweight Directory Access Protocol data takes the form of property lists (entries) LDAP specifications don't really speak to the database itself, jut the way it's accessed entry consists of a set of named attributes along with those attributes' values an attribute can have several values similar to windows registry

LDAP entry: /etc/passwd line

OpenLDAP slapd is the standard server daemon after editing this file you should be able to start the server with slapd (no arguments)

NIS replacement by LDAP RFC2307 describes converting NIS mapping to LDAP very long story short, just use a pearl script like migrate_group to convert to LDAP standard verify by running slapcat, which displays the entire database