Homework 3 frank.

Slides:



Advertisements
Similar presentations
Basic Unix system administration
Advertisements

System Administration Final Project - Micro Computer Center hchung, hwchiu.
Chapter 21 Security. Computer Center, CS, NCTU 2 Firewall (1)  Using ipfw 1.Add these options in kernel configuration file and recompile the kernel 2.Edit.
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.
© Copyright 1997, The University of New Mexico C-1 Internet Service Provider Services What to do once you’re connected.
Lesson 22 – Introduction to Linux Systems Administration.
Guide To UNIX Using Linux Third Edition
Network File System Joe Paulowskey Joe Paulowskey Susan Mulholland Joe Woulfe.
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
Free Powerpoint Templates Working on remote computers by Pedro Henriques June 1, 2012.
Thrive Installation.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Please Dial in, class will begin shortly
System Administration HW2 - FTP, Samba, BT, ZFS jwbai.
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.
Daemon issue 14 SSH Port Forwarding Yannis Tsopokis Wednesday, April 26 th 2006.
| nectar.org.au NECTAR TRAINING Module 5 The Research Cloud Lifecycle.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
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.
System Administration HW3 Shell Script changlp. Computer Center, CS, NCTU 2 Requirements  User socket statistic (20%) Use one-line command to show per-user.
Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25.
System Administration HW2 - File System Server ylin.
System Administration HW2 - File System Server. Computer Center, CS, NCTU 2 FTP  Install a FTP server for FreeBSD Pure-FTPd: /usr/ports/ftp/pure-ftpd.
Linux Services Configuration
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
System Administration HW5 - Micro Computer Center yihshih / lctseng.
| nectar.org.au NECTAR TRAINING Module 5 The Research Cloud Lifecycle.
11 IMPLEMENTING AND MANAGING SOFTWARE UPDATE SERVICES Chapter 7.
Basic Service & Settings xclin. Computer Center, CS, NCTU 2 If you want to transfer a file…
Linux Operations and Administration
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
System Administration Practice Homework6 - LDAP login + Puppet + Jail yench / lctseng / chchang2222.
VIRTUAL HOSTING WITH PureFTPd And MYSQL (Quota And Bandwidth Management) BY Odoh Kenneth Emeka Sun Yu Patrick Appiah.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
System Administration HW3 - Shell Script chenyp. Computer Center, CS, NCTU 2 Requirements  File statistics (20%+10%) use one-line command to show files.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Network File System Peter DSouza. NFS  Allows machines to mount a disk partition on a remote machine as if it were a local drive  Other systems similar.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
System Administration Practice Homework 1-3 : Chinese World lctseng.
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
System Administration HW3 - Shell Script hchung. Computer Center, CS, NCTU 2 Requirements  User connect time statistic script (10%) Use one-line command.
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
Exercise 7 Samba.
System Administration Practice Homework 1-1 : FreeBSD Base
Vulnerability Scanning With 'lynis'
Lab 1 introduction, debrief
Telnet/SSH Connecting to Hosts Internet Technology.
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Chapter 27: System Security
SSH SSH is “Secure SHell” Secure, compressed, widely supported, fast
NFS.
Final Project Announce: Due:
Web Servers / Deployment
Final Project– NFS and NIS
Computer System Administration Homework 3 – File Server
System Administration HW5 - Micro Computer Center
Jerald Overstreet, GISP Server Portal SQL Manager Admin
System Administration HW5 - Mini Private Lab
System Administration HW3 - File System Server
Announced Date: 2006/12/20 Due Date: 2007/1/3
Virtual Machine and VirtualBox
System Administration Practice Homework2 - File System Server
Virtual Machine and VirtualBox
System Administration HW2 - File System Server
Computer System Administration Homework 1 Install FreeBSD & WireGuard
Presentation transcript:

Homework 3 frank

ZFS - Automatic Snapshot Script Specification Usage: ./zbackup [[--list | --delete] target dataset [ID] | target dataset [rotation count]] Example $ sudo ./zbackup data/to/backup 5 $ sudo ./zbackup --list data/to/backup ID Dataset Time 1 data/to/backup 2016-10-05 10:12:23 2 data/to/backup 2016-10-05 10:14:25

ZFS - Automatic Snapshot Script Specification Create (Default) No more than rotation count snapshots per dataset If no rotation count specified, max 20 snapshots are allowed If rotation count has reached, delete the very first one List List the snapshot created by zbackup If dataset is specified, list only the snapshot of that dataset Otherwise, list all of the snapshot Delete Delete snapshots created by zbackup Must specify dataset If ID is specified, delete that one Otherwise delete them all

ZFS - Backup to google drive Backup your dataset to google drive Must compress with xz Must encrypt with aes256 The filename should be dataset/to/backup@2016-10-12.xz.enc Download it and roll back

System Administration Practice HW3 - Micro Computer Center pschiu

sa-core 1.sudoers sahome NFS Master nullfs sabsd Export /net/data (ro) /net/home (maproot=nobody) /net/admin /usr/ports Export /net/data (ro) /net/home (maproot=nobody) /usr/ports NFS Client saduty ……... NFS Client

sa-core Only sa-adm can login sa-core. Connect to sahome only from saduty Connect to sa-core only from sa-bsd sahome sabsd ssh ssh saduty ……... ssh

Requirements (1) - Overview Machines sahome: NFS Server saduty: NFS Client sabsd: NFS Client Groups sysadm: can access /net/data/sata, can sudo everything but su and any shells nctucs: everyone AllowGroups

Requirements (2) - sahome nullfs /net/home => /vol/home /net/data => /vol/data /net/admin => /vol/admin login sa-adm only Only from saduty sshd_config Match Address

Requirements (3) - saduty NFS /net/home => sahome:/vol/home (maproot=nobody) /net/data => sahome:/vol/data (ro) /net/admin => sahome:/vol/admin (ro) login sa-adm only

Requirements (4) - sabsd NFS /net/home => sahome:/vol/home (maproot=nobody) /net/data => sahome:/vol/data (ro) /net/admin => sahome:/vol/admin (ro) login All (anywhere)

Requirement (5) All machines share /net/admin/sudoers All user’s home directory must be in /net/home except root Auto-start all services

Step 1 - Setup NFS environment Nullfs (NFS Server) $ mount_nullfs /vol/home /net/home In /etc/fstab: /vol/home /net/home nullfs rw 2 2 Edit /etc/exports (NFS Server) Edit /etc/rc.conf nfs_server, mountd (NFS Server)

Step 2 - Finishing sudoers (/usr/local/etc/sudoers) Including other sudoers file from /net/admin/sudoers man sudoers to see more about “include”. sahome:/etc/hosts.allow or other method (firewall or sshd_config) sa-adm only can login sahome from saduty. /net/data/sata sysadm only Login permissions only sa-adm can login sa-core.

Help Go to bsd*.cs.nctu.edu.tw IRC channel #nctuNASA on freenode Email ta@nasa.cs.nctu.edu.tw Goto CSCC to ask TA @ EC3F! Join our Facebook Group https://www.facebook.com/groups/328840520802507/

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 <origin> <new_path> For example % mkdir /home/allhome make a directory for Real NFS Home % mkdir /home/for_nis make 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 /home/allhome /home/for_nis nullfs rw 2 2

Appendix Appendix B – sshd_config $ man sshd_config OpenSSH SSH daemon configuration file

Additional Bonus Create NFS Server from zpool. Build NIS to resolve some synchronize issue. Refer page 6 to draw your own “Micro Computer Center” topology diagrams. You have few option of software to finish this task. Microsoft Visio (you can download from ca.nctu.edu.tw) Online Diagram editor (Gliffy / draw.io / Others) Microsoft PowerPoint (not recommended) Including more information as possible. (ip, port, service, hostname, etc.)