Basic UNIX system administration

Similar documents
Manage Jobs with cron and at

HP-UX System Administration Course Overview. Skills Gained. Who will the Course Benefit?

HP-UX System Administration

Answers to Even- Numbered Exercises

Ch 9: Periodic Processes

Linux & Shell Programming 2014

3X Linux System Administration (Level 1) Exam.

The Linux IPL Procedure

UNIX System Administration

OPERATING SYSTEMS LINUX

Disks, Filesystems 1

CL030 is a csage Certification Preparatory Course!

Linux File System Study Guide

Booting up and Shutting down A primer for troubleshooting

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

RH-202. RedHat. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

412 Notes: Filesystem

Chapter 5: User Management. Chapter 5 User Management

Commands are in black

Logical disks. Bach 2.2.1

CSE 265: System and Network Administration

CSE 265: System and Network Administration

UNIT V. Dr.T.Logeswari. Unix Shell Programming - Forouzan

File Systems. What do we need to know?

RedHat. Rh202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

Exam Linux-Praxis - 1 ( From )

Introduction to UNIX/LINUX Security. Hu Weiwei

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1

Unix System Architecture, File System, and Shell Commands

Basic Linux Security. Roman Bohuk University of Virginia

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

The golden age of hacking. OS UNIX GNU/Linux UNIX access control

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name

Unix Filesystem. January 26 th, 2004 Class Meeting 2

The UNIX Time- Sharing System

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Operating Systems, Fall

The table below lists the domains measured by this examination and the extent to which they are represented in the examination.

cron How-To How to use cron to Schedule rsync Synchronizations September 29, 2004

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

CS197U: A Hands on Introduction to Unix

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

World Sync, Clone, and Snapshot... Overview and Introduction. School of IS Curtin University. Overview

CSE 265: System and Network Administration

Department of Computer Science and Technology, UTU 2014

File Management. Ezio Bartocci.

Cray Security Administration: Tricks of the Trade T3D128 YMP8E. Bonnie Hall Senior System Specialist Exxon Upstream Technical Computing

Red Hat Linux POCKET ADMINISTRATOR. Richard Petersen Ibrahim Haddad. McGraw-Hill/Osborne

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

File systems: management 1

Chapter 1 - Introduction. September 8, 2016

LAB #7 Linux Tutorial

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Processes are subjects.

Changing user login password on templates

Case study: ext2 FS 1

File systems and Filesystem quota

SA2 v6 Linux System Administration II Net Configuration, Software, Troubleshooting

Installation of the OS

Embedded System Design

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

Outline. UNIX security ideas Users and groups File protection Setting temporary privileges. Examples. Permission bits Program language components

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

client X11 Linux workstation

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

mode uid gid atime ctime mtime size block count reference count direct blocks (12) single indirect double indirect triple indirect mode uid gid atime

CSE/ISE 311: Systems Administra5on Access Control and Processes

INSTALLING INSTALLING INSTALLING

MANAGING THE NONUNIFORM BEHAVIOUR OF TERMINALS AND KEYBOARDS. : WHEN THINGS GO WRONG

Case study: ext2 FS 1

LPI LPI Level Junior Level Linux Certification Part 1 of 2. Download Full Version :

Exploiting capabilities Parcel root power, the dark side of capabilities

Certification. System Initialization and Services

File Management 1/34

Linux Interview Questions and Answers

UNIX/Linux Auditing. Baccam Consulting, LLC Training Events

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

NETW 110 Lab 3 Post-Installation Configuration Page 1

The landscape. File hierarchy overview. A tree structure of directories The directory tree is standardized. But varies slightly among distributions

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

Practical 5. Linux Commands: Working with Files

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

CTEC1863/2018F Bonus Lab Page 1 of 5

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

Project 3: An Introduction to File Systems. COP 4610 / CGS 5765 Principles of Operating Systems

File System. yihshih

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

CIT 480: Securing Computer Systems

Please choose the best answer. More than one answer might be true, but choose the one that is best.

G54ADM Sample Exam Questions and Answers

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

File Properties and Permissions

CS370 Operating Systems

Transcription:

Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright 2001-2003.

System administration Thus far, we ve only discussed: the use of UNIX from an end user point of view System programming - accesses the core OS but doesn t change the way it operates System administration is another level: changing the way the system is set up and operates for end users Strongly related to security issues (C) Doug Bowman, Virginia Tech, 2001 2

The superuser Most sys. admin. tasks can only be done by the superuser (also called the root user) Superuser has access to all files/directories on the system can override permissions owner of most system files Shell command: su <username> Set current user to superuser or another user with proper password access (C) Doug Bowman, Virginia Tech, 2001 3

Administration through files As you would expect, system settings are stored in files Most of these are stored in /etc We ll look at files related to: Users and groups File systems System initialization System upkeep In section 5 of the man pages (C) Doug Bowman, Virginia Tech, 2001 4

/etc/passwd Information about system users bowman:x:65:20:d.bowman:/home/bowman:/bin/ksh login name user ID real name group ID [encrypted password] command interpreter home directory (C) Doug Bowman, Virginia Tech, 2001 5

/etc/group Information about system groups faculty:x:23:bowman,ribbens,mcquain list of group members group ID [encrypted group password] group name (C) Doug Bowman, Virginia Tech, 2001 6

/etc/fstab Information about file systems /dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0 mount options file system type mount point file system (local device or remote dir.) other flags (C) Doug Bowman, Virginia Tech, 2001 7

/etc/inittab and /etc/init.d/ inittab: configuration file for the init process Defines run levels init.d: Directory containing system initialization scripts Script rc <n> is run at run level n Starts and stops various services (C) Doug Bowman, Virginia Tech, 2001 8

Configuring the system Often by directly editing files with a text editor In some cases there are programs that modify the files for you Many systems also have nice graphical user interfaces that let you manipulate these files indirectly (C) Doug Bowman, Virginia Tech, 2001 9

File System Implementation A possible file system layout (C) Doug Bowman, Virginia Tech, 2001 10

Internal View of a File System Boot Block: The first block in a UNIX file system, contains the boot program and other initialization information or unused. Super Block Always the second block, contains the complete catalog of specific information about the file system, including lists of free memory (C) Doug Bowman, Virginia Tech, 2001 11

Internal View of a File System Inode list blocks List of inodes for the file system, contiguous and always follows the super block. The number of inodes is specified by the system administrator File access and type information, collectively known as the mode. File ownership information. Time stamps for last modification, last access and last mode modification. Link count. File size in bytes. Addresses of physical blocks. (C) Doug Bowman, Virginia Tech, 2001 12

Internal View of a File System Data blocks OS files, user data and program files etc. (C) Doug Bowman, Virginia Tech, 2001 13

File system Commands mount mount a file system umount unmount a file system fsck check and repair a Linux file system sync flush filesystem buffers (C) Doug Bowman, Virginia Tech, 2001 14

crontab Useful to have a script or command executed without human intervention a script to verify that the networks are working correctly cron daemon reads cron configuration files called crontab short for cron table parse crontabs find the soonest command to be run go to sleep until the command s execution time has arrived (C) Doug Bowman, Virginia Tech, 2001 15

What s cron and crontabs? Under UNIX, periodic execution is handled by the cron daemon read one or more configuration files containing as following command lines times at which they are to be invoked (on some systems) login names under which they are to run crontabs /etc/crontab (C) Doug Bowman, Virginia Tech, 2001 16

Format of Crontab files Seven or six fields minute hour day month weekday [username] command an asterisk matches all possible values, a single integer matches that exact value, a list of integers separated by commas (no spaces) used to match any one of the values two integers separated by a dash (a range) used to match any value within the range (C) Doug Bowman, Virginia Tech, 2001 17

Example crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ 01 * * * * root nice -n 19 run-parts /etc/cron.hourly 02 4 * * * root nice -n 19 run-parts /etc/cron.daily 22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly 42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly (C) Doug Bowman, Virginia Tech, 2001 18