Announced Date: 2006/12/20 Due Date: 2007/1/3

Slides:



Advertisements
Similar presentations
AD User Import From SIMS.NET
Advertisements

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
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.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
NIS Consistent configuration across the network. Why NIS? Primary reason is to provide same user configuration across the network Users go any machine.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Distributed Software Development
NETWORK FILE SYSTEM (NFS) By Ameeta.Jakate. NFS NFS was introduced in 1985 as a means of providing transparent access to remote file systems. NFS Architecture.
Network File System Joe Paulowskey Joe Paulowskey Susan Mulholland Joe Woulfe.
Remote Disk Access with NFS
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
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.
Unix Basics Chapter 4.
2/19/2003 Lecture 3 Computer System Administration Lecture 3 Setup (continued)
Day 8 Exporting Displays Cronjobs Mount. Chapter 5 Chapter 5 talks about X windows. –You should read the chapter. –However, you do not need to pay particular.
Linux+ Guide to Linux Certification, Second Edition
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Adding New Users User as an entity - username(UID), GID. UID - typically a number for system to identify the user. GID – a number that recognizes a set.
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.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Sys Admin Course NFS and SAMBA Fourie Joubert. Sys Admin Course NFS NFS is the Network File System It allows Linux systems to share a file system, or.
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.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
System Administration HW5 - Micro Computer Center yihshih / lctseng.
03 | Manage Team Foundation Server Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
1. During the standard installation of NetBackup 6.5 you will need to select a Custom install. 2. A valid License Key to install the Windows Media server.
Lecture – Users and groups
Linux Operations and Administration
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
Introduction to AFS IMSA Intersession 2003 Managing AFS Services Brian Sebby, IMSA ‘96 Copyright 2003 by Brian Sebby, Copies of these slides.
Introduction to AFS IMSA Intersession 2003 An Overview of AFS Brian Sebby, IMSA ’96 Copyright 2003 by Brian Sebby, Copies of these slides.
Experiment No 4 Prepared by, Mr. Satish Pise. Objectives View the /etc/passwd file and describe its syntax. View the /etc/shadow file and describe its.
Unity Application Generator How Can I… Export variables of a Control module with all parameters, modify the some of the parameters like Initial values.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED ADMINISTRATION.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Chapter 17: Sharing System Files Stephen Workman.
Linux 101 Training Module Linux Basics.
CVS – concurrent versions system
Homework 3 frank.
Exercise 7 Samba.
NIS Concepts and Configuration
Automount NFS.
Unix Systems Administration
5.8 Presentation.
File Stream and Team Drives
TABE PC.
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Linux Administration Odds and Ends
Web Programming Essentials:
NFS.
Final Project Announce: Due:
Automount NFS.
Final Project– NFS and NIS
System Administration HW5 - Micro Computer Center
System Administration HW5 - Mini Private Lab
The Network File System
Network Information Service
Automounter Filesystem - autofs
RHCSA Study Prep.
Presentation transcript:

Announced Date: 2006/12/20 Due Date: 2007/1/3 Exercise 4 – NFS and NIS Announced Date: 2006/12/20 Due Date: 2007/1/3

Outline Team Work - Find at most two partner to finish this job Labs Lab1 – NFS exports and mount Lab2 – NIS servers and clients Lab3 – NIS, NFS, and amd Bonus Bonus1 – NIS slave server Bonus2 – Backup Appendix Appendix A – mount_nullfs

Labs Lab1 – NFS exports and mount(1) Goal: Export NFS Import NFS Requirement: Mount NFS with correct exports permission Triangle relationship Arrow is the direction of exports

Labs Lab1 – NFS exports and mount(2) For PartnerA Make directories as following names % mkdir /home/partnerA % mkdir /home/partnerB % mkdir /home/partnerC Export /home/partnerA (Relation as previous picture) Modify /etc/exports Read-Only for partnerB, Read-Write for partnerC Edit /etc/fstab to mount partnerB and partnerC via NFS Try to Create Files in these two NFS PartnerA can write /home/partberB, cannot write /home/partnerC Similarly for PartnerB and PartnerC

Labs Lab2 – NIS servers and clients(1) Goal: NIS master servers, and clients Requirement: Share master.passwd, passwd, and group Three NIS accounts, you can choose names you like The group of these accounts is written in NIS group All NIS accounts can login all NIS clients, but only admin user (the user in NIS master server) can login the NIS master server No need to take care the home directories, and other filesystems

Labs Lab2 – NIS servers and clients(2) Settings for NIS master server(1) Copy /var/yp/Makefile.dist to /var/yp/Makefile (original is a symbolic link) Comment out this line in the Makefile NOPUSH = "True“  #NOPUSH = “True” To ensure NIS master server reads the shared files from NIS, please modify the GROUP variables to be read from /var/yp/ GROUP = $(YPDIR)/group Copy master.passwd, group from /etc/ to /var/yp/

Labs Lab2 – NIS servers and clients(3) Settings for NIS master server(2) Modify master.passwd Delete system accounts, and add three NIS accounts You can use the names you like, but not be the same as system’s accounts Their home directories in /nis/home/ (Will be done in Lab3) Modify group Add a NIS group Build NIS master server Set domainname Modify /etc/rc.conf % ypinit –m <domainname> Start NIS Master Server

Labs Lab2 – NIS servers and clients(4) Settings for NIS clients Set domainname Modify /etc/rc.conf Modify /etc/hosts Add the entry of the NIS server Modify /etc/group Modify /etc/master.passwd Start NIS Client Note: The NIS master server also needs to be an NIS client, but only admin can login

Labs Lab3 – NIS, NFS, and amd(1) Goal: Continue after Lab2, using NFS as NIS home Requirement: Pick a machine different from the NIS master server to export NFS Export Read-Write for all maproot=nobody for all clients, but root for NIS master server Because /etc/exports cannot export one device, please use mount_nullfs to mount this filesystem to /nis/home NFS clients should let NIS users see their home directories at /nis/home/ Directly mount on /nis/home Symbolic link /nis/home to the amd mount point

Labs Lab3 – NIS, NFS, and amd(2) Add some files on the NIS master server Modify the AMDHOST variables to be read from /var/yp/ AMDHOST = $(YPDIR)/amd.map Copy amd.map, netgroup from /etc/ to /var/yp/ Modify amd.map NFS machine doesn’t need to mount it, because it should mount by mount_nullfs Modify netgroup Use netgroup to export the NFS, and so add one new client is easy Also, you can add admins in one netgroup for NIS master to set in the master.passwd (Optional) Rebuild NIS database

Labs Lab3 – NIS, NFS, and amd(3) Export NIS Home Use mount_nullfs to mount this filesystem to /nis/home Modify /etc/exports Export /nis/home to all, specify the maproot option. Modify /etc/rc.conf Run NFS server Run amd on all machines Start amd Note: In amd_flags, set the mapname as amd.map, it will automatically search the NIS, you can man amd.conf and see the map_type for more information.

Bonus Bonus1 – NIS slave server Goal: Pick the machine, which is neither the NFS server nor the NIS master server, and build the NIS slave server. Requirement: The NIS slave server can bind itself Settings for the NIS slave server Set domainname Modify /etc/rc.conf ypinit -s <master> <domainname> Start NIS Slave Server You can read this for more details http://www.tw.freebsd.org/doc/zh_TW.Big5/books/handbook/network-nis.html

Bonus Bonus2 – Backup Goal: Requirement Settings for the Backup Backup all data on the NIS system, including NIS database, and Homes of NIS accounts Requirement NIS master server exports Backup via NFS, and all read-only, maproot=nobody Settings for the Backup Use mount_nullfs to mount this filesystem to /nis/backup Export /nis/backup Modify configuration files and run NFS server Mount /nis/backup by amd Write amd map in the NIS amd.map Update NIS database

Appendix Appendix A – mount_nullfs The command mount_nullfs <origin> <new_path> For example % mkdir /home/for_nis make a directory for NIS Home % mkdir –p /nis/home make a mount point for NIS Home % mount_nullfs /home/for_nis /nis/home mount it Use it in /etc/fstab Change the fstype to nullfs /home/for_nis /nis/home nullfs rw 2 2