Initialization: runlevels

Similar documents
Booting: ROM vs RAM The term random access memory is somewhat misleading because DRAM, SRAM and ROM all qualify as random access memories We will

How to stop / start services in boot time and install / remove / update SuSE SLES (Suse Enterprise Linux Server)?

The Linux Boot Process

Certification. System Initialization and Services

CSE 265: System and Network Administration

CSE 265: System and Network Administration

Preparing for the Prime Home Installation

Network Infrastructure Security Recommendations

The Linux IPL Procedure

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

System Administration. Startup Process

Linux Administration

Authored by: Brian E. Brzezicki Copyright 2013, Paladin Group LLC Reuse without permission is strictly prohibited

Booting up and Shutting down A primer for troubleshooting

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

Course 55187B Linux System Administration

Unit 2: Manage Files Graphically with Nautilus Objective: Manage files graphically and access remote systems with Nautilus

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

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

RedHat Certified Engineer

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

OPERATING SYSTEMS LINUX

OPERATING SYSTEMS. Božo Krstajić, PhD, University of Montenegro Podgorica.

1Z0-100 oracle.

ITDUMPS QUESTION & ANSWER. Accurate study guides, High passing rate! IT dumps provides update free of charge in one year!

Chapter. Basic Administration. Secrets in This Chapter. Monitoring the System Viewing Log Files Managing Services and Programs Monitoring Disk Usage

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

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

RAP Installation README

CSE 265: System and Network Administration

Introduction to Linux Init Scripts

SA3 E7 Advanced Linux System Administration III Internet Network Services and Security

"Charting the Course... Enterprise Linux System Administration Course Summary

"Charting the Course... MOC B: Linux System Administration. Course Summary

Exam Name: Red Hat Certified Engineer on Redhat

Part 1 : Getting Familiar with Linux. Hours. Part II : Administering Red Hat Enterprise Linux

"Charting the Course... RHCE Rapid Track Course. Course Summary

Disable Bluetooth on CentOS / RHEL (Redhat) / Fedora Linux servers - Disable hidd bluetooth devices

Communication protocols and services

WHITE PAPER. Instant openmosix. How to build a working openmosix cluster without touching a compiler

Chapter 2 Booting Up and Shutting Down

Exam LFCS/Course 55187B Linux System Administration

Advanced Unix System Administration

Unit 2 System startup and shutdown

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

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

Virtual Data Center (vdc) Manual

Linux for UNIX Administrators

ENTERPRISE LINUX SYSTEM ADMINISTRATION

Contents at a Glance COPYRIGHTED MATERIAL. Introduction...1 Part I: Becoming Familiar with Enterprise Linux...7

Using grub to Boot various Operating Systems

NETWORK CONFIGURATION AND SERVICES. route add default gw /etc/init.d/apache restart

Herding Clones. Mike Kershaw August 17, urmk/

CIS 191A Final Exam. Fall CIS 191 Final Exam

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 8 Perform a Health Check and Performance Tuning

Booting Up and Shutting Down

Installing Red Hat Enterprise Linux AS 4 Update 3 on the IBM System p5 185 or IBM Intellistation POWER 185

SysadminSG RHCSA Study Guide

Integrating Ubuntu based workstations in IPBrick s domain

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

RH202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) Exam.

Services, logging, accounting Todd Kelley CST8177 Todd Kelley 1

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

SUN SOLARIS. Course Catalog

1Z Oracle Linux 5 and 6 System Administration Exam Summary Syllabus Questions

How to Use This Lab Manual

Vendor: RedHat. Exam Code: RH133. Exam Name: Red Hat Linux System Administration. Version: Demo

Oracle - Oracle Linux 5 6 System Administration Ed 3

Basic UNIX system administration

Services and Security

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

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu

Red Hat Certified System Administrator (RHCSA) RHCSA 7 Requirements and Syllabus

Red Hat System Administration I - RH124

FastTrack to Red Hat Linux System Administrator Course Overview

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

CIT 480: Securing Computer Systems

Overview of the Cisco NCS Command-Line Interface

OS security mechanisms:

Linux+ Guide to Linux Certification, Third Edition. Chapter 6 Advanced Installation

PASS4TEST 専門 IT 認証試験問題集提供者

Runlevels, System Shutdown and Reboot

Oracle Linux System AdministrationNEW

1 LINUX KERNEL & DEVICES

Oracle Linux 5 & 6 System Administration TOD

CS 550 Operating Systems Spring Process II

Oracle Linux 5 & 6 System Administration

Unit- 5. Linux Systems

Expert Reference Series of White Papers. Troubleshooting Made Easy In Linux

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Computer System Administration Homework 3 File Server. fchsieh / zswu

Configuring the Cisco NAM 2220 Appliance

HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

CloudView NMS Agent User Guide. /multi-platform version/

CompTIA Linux+/LPIC-1 COPYRIGHTED MATERIAL

Quick Start Guide for Intel FPGA Development Tools on the Microsoft* Azure* Platform

EL Serial Port Server Installation Guide Errata

HP-UX System Administration

Transcription:

Initialization: init The init process is always the first started (has a PID of 1) and will remain running until the system is shut down With init running, the kernel moves to the background awaiting system calls init s first step is to invoke /etc/inittab this script s responsibility is to establish the default runlevel to start in (usually runlevel 5) this file may have other commands as well (see the next slide)

Initialization: runlevels Run Level Name Common Usage 0 Halt Shuts down the system; not used in inittab as it would immediately shut downon initialization. 1 Single-user mode Useful for administrative tasks including unmounting partitions and reinstalling portions of the OS; when used, only root access is available. 2 Multi-user mode In multi-user mode, Linux allows users other than root to log in. In this case, network services are not started so that the user is limited to access via the console only. 3 Multi-user mode with Commonly used mode for servers or systems that do not Networking require graphical interface. 4 Not used For special/undefined purposes. 5 Multi-user mode with Most common mode for a Linux workstation. Networking and GUI 6 Reboot Reboots the system; not used in inittab because it would reboot repeatedly.

Initialization: rc The following is the listing for /etc/rc5.d These are symbolic links to the actual scripts in /etc/init.d to start and stop The various services for runlevel 5

Services A piece of OS code used to handle requests Services are divided into different categories Services have distinct features from other OS components or servers Run in the background Handle requests that could come in from different types of sources (user, application software, system software, network message, hardware) They are configurable Services can be started or stopped as desired

Services: Categories boot file system hardware language support logging network, web/internet power management scheduling system maintenance

Services: Notable Ones in CentOS Name Type Description acpi power management laptop battery fan monitor acpid event handling handles acpi events anacron scheduling for scheduling startup tasks at initialization time apmd powermanagement laptop powermanagement arpwatch web/internet logs remote IP addresses with hostnames atd scheduling executes at jobs based on a scheduled time and batch jobs based CPU load auditd logging the Linux auditing system daemon which logs system, software and user-generated events autofs file system automatically mounts file systems at initialization bluetooth hardware bluetooth service certmonger web/internet maintain up-to-date security certificates cpufreq, cpufreqd hardware configures and scales CPU frequency to reduce possible CPU overheating

Name Type Description crond scheduling the daemon for handling cronttab jobs cups hardware service for printing cvs system managing multi-user documents dhcpd web/internet configure DHCPaccess dnsmasq web/internet starts/stops DNS caching gpm hardware mouse driver haldaemon hardware monitors for new or removed hardware httpd web/internet the Apache web server iptables, ip6tables web/internet the Linux firewalls mdadm file system managessoftware for RAID named web/internet starts/stops the BIND program (DNS) netfs file system allows remote mounting netplugd network monitors network interface network network starts and stops networkaccess nfs file system enables network file system sharing nscd network password and group lookup service

Name Type Description oddjobd system fields requests from software that otherwise do not have access to needed Linux operations postfix network mail service prelude network intrusion detection system service rdisc network discovers routers on local subnet rsync file system allows remote mountingoffile systems smartd hardware monitors SMART devices, particularly hard drives snmpd network network management protocol for small networks sshd network service to permit ssh access syslog logging system logging ypbind network name server for NIS/YP networks

Services: Starting and Stopping You can establish which runlevels a service is started or stopped for in three ways By altering the symbolic links in the rc#.d directories (e.g., change S11auditd to K88auditd) Using the chkconfig command Without arguments, it lists for all services the runlevels that the service starts and stops in Use arguments as in --level levelnumber service start/stop Use the Service Configuration Manager (see next slide) this GUI tool does not actually allow you to configure a service, just start or stop or change the runlevels that it starts and stops

Services: Starting and Stopping Select a service Click on Start, Stop, Restart Click Enable/Disable to indicate that the service should be started or stopped for this runlevel Select Customize to change start/stop runlevels (only permits runlevels 2-5)

Services: Starting and Stopping You can start and stop services from the command line /sbin/service servicename command command is one of start, stop, restart, status Or /etc/init.d/servicename command as in /etc/init.d/auditd start If you are in /etc/init.d, you can also do this as./auditd start The files in /etc/init.d are not the services but are scripts used to start and stop services We explore some portions of the atd script next

Services: a Closer Look auditd the Linux auditing system daemon Logs entries based on activities that match rules defined in auditd s rule file (/etc/sysconfig/audit.rules) Rules use options to specify the type of event and specific criteria as shown in the table below Syntax Meaning -D Delete any previously defined rules -b # # is a number, establish # buffers, e.g., -b 1024 -f # Set failure flag to # (0 is silent, 1 is print failure messages, 2 is panicor halt the system) -w directory Log attempts to accessthe directory -w filename Log attempts to accessthe file -w filename p [rwxa]* Log attempts to read file (r), write to file (w), execute file (x), or change file s attributes (a). The * indicates that any combination of the options r, w, x, and a can be listed. -a action,list S syscall F field=value Log system calls; action is either always or never, list is one of task, entry, exit, user or exclude. The S option allows you to specify a Linux operation such as chmod, mkdir or mount. The F option allow you to fine-tune the match by testing some system or user parameters such as EUID