New SA Training Topic 4: System Architecture  System architecture is a broad topic, comprised of many different things. In our organization, SA’s primarily.

Slides:



Advertisements
Similar presentations
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Advertisements

Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
DIT314 ~ Client Operating System & Administration CHAPTER 4 CONFIGURING HARDWARE DEVICES AND STARTUP PROCESS Prepared By : Suraya Alias.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
Chapter 3 Understanding the Boot Process and Command Line.
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 4: Troubleshoot System Startup and User Logon Problems.
11 INSTALLING WINDOWS XP Chapter 2. Chapter 2: Installing Windows XP2 INSTALLING WINDOWS XP  Prepare a computer for the installation of Microsoft Windows.
1 Web Server Administration Chapter 3 Installing the Server.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Computer Forensics Principles and Practices by Volonino, Anzaldua, and Godwin Chapter 6: Operating Systems and Data Transmission Basics for Digital Investigations.
System Startup and Shutdown
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
IT Essentials: PC Hardware and Software 1 Chapter 7 Windows NT/2000/XP Operating Systems.
2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 6 Windows NT/2000 Operating Systems.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
Booting and boot levels
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
ITE 1 Chapter 5. Chapter 5 is a Large Chapter It has a great deal of useful information about operating systems. You will find this VERY helpful when.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 14 Managing and Troubleshooting Windows 2000.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Module 12: Managing Disaster Recovery. Overview Preparing for Disaster Recovery Backing Up Data Scheduling Backup Jobs Restoring Data Configuring Shadow.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 13 Understanding and Installing Windows 2000 and Windows NT.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
File Permission and Access. Module 6 File Permission and Access ♦ Introduction Linux is a multi-user system where users can assign different access permission.
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 7 Under the Windows Desktop McGraw-Hill.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 13 Understanding and Installing Windows 2000 and Windows NT.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Basic Linux Administration Chapter 11: System Administration: Core Concepts Chapter 16:
Chapter Thirteen Booting Windows XP. Objectives Understand the Windows XP boot process Understand the Windows XP boot process Troubleshoot system restoration.
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
Chapter 8 File System Security. File Protection Schemes Login passwords Encryption File Access Privileges.
Lecture 18 Windows – NT File System (NTFS)
I T Essentials I Chapter 5 JEOPARDY Installing & UpgradingComputerBasicsErrorsServicePotpourri
Chapter 8 File System Security. File Protection Schemes Password-Based Protection Encryption-Based Protection Protection-Based on Access Permission.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 7 Under the Windows Desktop McGraw-Hill.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 7 Under the Windows Desktop McGraw-Hill.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
Lecture 4 & 5: System Architecture  File systems  Devices  File system permissions  Review of Linux runlevels  In-class exercise.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
ITMT Windows 7 Configuration Chapter 4 – Working with Disks and Devices ITMT 1371 – Windows 7 Configuration 1.
Chapter Seven Installing and Configuring, Operating Systems.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Chapter 5: Windows Installation
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Guide to Linux Installation and Administration, 2e
Chapter 12: File System Implementation
Windows XP File Systems
Files Used in the Boot Process
Introduction to Computers
Partitioning a Hard Drive
CONFIGURING HARDWARE DEVICE & START UP PROCESS
File Sharing Sharing of files on multi-user systems is desirable
Booting Up 15-Nov-18 boot.ppt.
Chapter 2: System Structures
SUSE Linux Enterprise Desktop Administration
Partitioning & Formatting
Instructor Materials Chapter 5: Windows Installation
Presentation transcript:

New SA Training Topic 4: System Architecture  System architecture is a broad topic, comprised of many different things. In our organization, SA’s primarily are concerned with the following.  File systems  Devices  File system permissions  Run levels  Win32 system components  Processes

File Systems A File System relates to how data is stored o Local or remote storage o Devices -> partitions -> file systems o Usually this means: o disk -> partition -> file system -> files (remind me to draw this for you) o fdisk, gparted, or the like Our organization uses both Windows and Linux file systems.

File systems (cont.) Windows FAT (8, 12, 16, 32; exFAT for flash drives) NTFS (most modern Windows boxes) ReFS (newest: increased resilience) format chkdsk Linux UFS (the Unix File System) ext*, and many, many others mkfs fsck (journaling on ext3, reiserfs, etc.)

File systems (cont.) Most PC’s use MBR (Master Boot Record) partitioning Each hard disk can contain up to four different "true" partitions, which are called primary partitions. One of the four partitions may be designated as an extended partition. The extended partition may then be subdivided into multiple logical partitions. The limit on the maximum number of logical volumes varies. Windows can generally provide 26 or more (A, B, C...). Unix/Linux systems may max at 15, 63, or other values.

File systems (cont.) MBR is slowly being replaced by GPT (GUID Partition Table) Eliminates concepts of Primary, Extended, and Logical volumes Uses a more extendable addressing system – thus HUGE partitions available (MBR generally maxes at ~2 TB depending on drive, GPT can do ~9 ZB!) Maximum number of partitions is generally considered to be 128. Not all OSes fully support GPT yet though

An exercise Diagram(s) - disk, partition, file system, files (1 disk, 1 partition, 1 fs, 1 file) N (1 disk, 2 partitions, 2 fs, many files) 1-3/1-M-N (1 disk, 3 primary + 1 extended partitions, many fs, many files) SAGE Level 1 SA’s should be able to label disk, partition, file system, and files with appropriate commands

Devices Windows detects disk devices automatically attaches as drive letter Linux can auto-detect some, but PNP support not complete usually need to mount (and umount -- note the missing 'n')

File system permissions Incomplete example – draw a better one

Thinking about permissions What is the simplest way to change permissions on emp_pay.xls so that HRMrg1 has access to the file, but Employee1 does not? What is a better way to do the above, that might be slightly more complex? Do you need to “give” access? Do you need to “deny” access? Both? How?

File system permissions (cont.) Windows GUI cacls – change acls Linux (chapter 2) Chmod – change mode (-rwxrw-r--=764) Chown – change owner (owner:group) Chgrp – change group Umask - sets the mask applied to newly created file and directory permissions ( =0664 / =0775) GUI (for some settings)

File system permissions (cont.) Special Linux Modes - sticky bit, SUID and SGID.sticky bitSUID SGID 1000: If the sticky bit is set on a directory, then only the file owner, the directory owner, or superuser can delete a file in that directory. If a directory has permissions 0770, then the directory owner or anyone in the directory's group can add files or delete any files (regardless of who the file's owner is). If the sticky bit is set, so the permissions are 1770, then anyone in the group can add files to the directory, but each user can only delete his or her own files. (chmod +t - drwxrwxrwt)

File system permissions (cont.) 2000: set group ID: Executables with this will run with effective gid set as the gid of the file owner. When a directory has this permission, files created in the directory have the group ID of the directory, rather than the default group setting for the user who created the file. (chmod g=s -rwx--Sr-x)set group ID 4000: set user ID: Executables with this will run with effective uid set as the uid of the file owner. Directories with set-user-id bit force all files/folders created in them to be owned by the directory owner and not by the uid of the creating process. (chmod u=s d--Sr-xr-x)set user ID NOTE – Not every *NIX implementation supports all functions of these permissions

File system permissions (cont.) Linux Access Control Lists Give emp1 and the group jrSA rwx on SAdir. Using the setfacl utility (note – file system must be mounted with ACL support) setfacl -m user:emp1:rwx,group:jrSA:rwx SAdir getfacl should return the following: # file: SAdir # owner: foo # group: bar user::rwx user:emp1:rwx group::r-x group:jrSA:rwx mask::rwx other::---

Review of Linux runlevels Runlevels 0 – Shutdown 1 – Single user 2 – Multi-user w/o networking 3 – Multi-user w/networking 4 – Unused 5 – Multi-user w/networking and GUI 6 – Reboot

System components (Win32)

System components (cont.) Layered OS (see handout) Protection Modularity Kernel Privileged accounts Windows: Administrator Unix/Linux: root (UID=0)

Processes Windows User Mode processes Use individual memory spaces Runs “as” a particular user Three types System processes – Manage User Mode environment (winlogon) Windows Services (services) User applications

Processes (cont.) Windows Kernel Mode processes Share memory space Have direct access to hardware Includes Executive Services, Microkernel, HAL Viewing Processes Task Manager Stopping Processes Services Utility Task Manager Net commands

Processes (cont.) Linux doesn't really make a distinction between types of processes su command allows for user switching Viewing Processes ps command Stopping Processes Services Utility kill command

New SA Training Topic 5: Startup / Shutdown Normal hard disk based startup sequence, generally uses “chain loading” (A->B->C) POST MBR, GPT, or similar Not OS specific Loads from known location If set device is set “active”, then… Program / software (OS, boot loader, Volume Boot Record…)

System Startup (Cont.) Windows startup sequence: Boot phase – NTLDR (uses boot.ini) or BOOTMGR (uses Boot Configuration Data or BCD) Kernel phase (ntoskernel.exe), kernel initialization (drivers) Services phase (smss.exe), Logon phase (winlogon.exe and lsass.exe)

System Startup (cont.) Linux startup sequence: lilo/grub kernel init (/etc/inittab – determines runlevel) /etc/rc*  Scripts used to control how the system will startup/shutdown are /etc/inittab and /etc/rc.d (or /etc/rcX.d, where X corresponds to runlevel. “S” scripts designate items to run at startup.) multi-booting: NTLDR/BOOTMGR vs Lilo/Grub vs VirtualPC/other virtualization

System Startup (cont.) Advanced startup Windows advanced startup options Last known good System Restore Safe mode Recovery console Emergency repair disk (ERD) Linux advanced startup options boot from floppy single-user mode

System Shutdown Windows Ctrl-Alt-Del – Shutdown Start – Shutdown From command line - shutdown –s (or –r) Applications are closed/services stopped Linux Init 0 (init 6 will reboot) shutdown -h now (-r will reboot) /etc/rc* handles some process shutdown, using “K” scripts