Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25.

Slides:



Advertisements
Similar presentations
Unit 5 – User Administration Randy Marchany VA Tech Computing Center.
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.
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.
Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
PC Cluster Setup on Linux Fedora Core 5 High Performance Computing Lab Department of Computer Science and Information Engineering Tunghai University, Taichung,
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
User Accounts and Permissions Chapter IV / Part II.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Copyright © 2014 EMC Corporation. All Rights Reserved. Exporting NFS File Systems to UNIX/ESXi Upon completion of this module, you should be able to: Export.
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.
Linux+ Guide to Linux Certification, Third Edition
The file structure and related utilities CS240 Computer Science II.
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Unix Command Project Justin Rogers for LS 560 Spring 2015.
1 Network File Sharing. 2 Module - Network File Sharing ♦ Overview This module focuses on configuring Network File System (NFS) for servers and clients.
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)
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.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 23 Shared Folders 1.
DIT314 ~ Client Operating System & Administration CHAPTER 5 MANAGING USER ACCOUNTS AND GROUPS Prepared By : Suraya Alias.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
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.
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.
Chapter 10: Rights, User, and Group Administration.
Chapter 3 & 6 Root Status and users File Ownership Every file has a owner and group –These give read,write, and execute priv’s to the owner, group, and.
1/14 Char 18 Sharing System Files Content –NIS(The Network Information Service) –NIS+
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
CS 346 – Chapter 11 File system –Files –Access –Directories –Mounting –Sharing –Protection.
WorkManager Concepts & Schema Course Outline The Old “Business Rules” Traditional LBNL CAD Method New “Business Rules” Engineering Data Management WorkManager.
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.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
System Administration HW5 - Micro Computer Center yihshih / lctseng.
1 Introduction to NTFS Permissions Assign NTFS permissions to specify Which users and groups can gain access to folders and files What they can do with.
Lecture – Users and groups
Linux Operations and Administration
System Administration Practice Homework6 - LDAP login + Puppet + Jail yench / lctseng / chchang2222.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
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.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Fab25 User Training Cerium Labs LabCollector - LIMS Lynette Ballast.
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.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Introduction to NTFS Permissions
Homework 3 frank.
File Stream and Team Drives
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Final Project Announce: Due:
Final Project– NFS and NIS
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
Presentation transcript:

Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25

Computer Center, CS, NCTU 2 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  Appendix Appendix A – mount_nullfs

Computer Center, CS, NCTU 3 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

Computer Center, CS, NCTU 4 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

Computer Center, CS, NCTU 5 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 (everyone has his/her own account) The group of these accounts is written in NIS group All NIS accounts can login all NIS clients, but only admin user (the owner of NIS master server gets) can login the NIS master server No need to take care the home directories, and other filesystems

Computer Center, CS, NCTU 6 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/

Computer Center, CS, NCTU 7 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 –Notice no collision with local accounts  Their home directories in /nis/home/nis_account (Will be done in Lab3) Modify group  Add a NIS group Build NIS master server  Set domainname  Modify /etc/rc.conf  % ypinit – m  Start NIS Master Server

Computer Center, CS, NCTU 8 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 user can login

Computer Center, CS, NCTU 9 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 /home/for_nis NFS clients should let NIS users see their home directories at /nis/home/nis_account  Symbolic link /nis/home to the amd real mount point  Check permission is correct (user can do anything in his own home dir)

Computer Center, CS, NCTU 10 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  The fstype of NFS SERVER machine (link) is different from that of other NFS CLIENT machine 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

Computer Center, CS, NCTU 11 Labs Lab3 – NIS, NFS, and amd(3)  Export NIS Home Use mount_nullfs to mount this filesystem to /home/for_nis Modify /etc/exports  Export /home/for_nis to all, specify the maproot option. Modify /etc/rc.conf Run NFS server  Run amd on all machines Modify /etc/rc.conf 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.

Computer Center, CS, NCTU 12 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 Start NIS Slave Server You can read this for more details  nis.html nis.html

Computer Center, CS, NCTU 13 Appendix Appendix A – mount_nullfs  $ man exports A host may be specified only once for each local file system on the server and there may be only one default entry for each server file system that applies to all other hosts.  The command mount_nullfs For example  % mkdir /home/allhomemake a directory for Real NFS Home  % mkdir /home/for_nismake a directory for NFS Home exports  % mount_nullfs /home/allhome /home/for_nis mount it  Use it in /etc/fstab Change the fstype to nullfs For example  /home/allhome /home/for_nis nullfsrw22