System Administration System Configuration and Logs.

Slides:



Advertisements
Similar presentations
Linux Users and Groups Management
Advertisements

CIS 193A – Lesson9 Network Infrastructure. CIS 193A – Lesson9 Focus Question What are three high level subnets a corporate intranet will want to support?
Basic Unix system administration
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 2 Manage User Access and Security.
Linux+ Guide to Linux Certification, Second Edition
Network Performance Toolkit (NPToolkit) A Knoppix Live-CD Rich Carlson Tools Tutorial 12/4/06.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
Linux System Administration LINUX SYSTEM ADMINISTRATION.
System Administration: Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
Va-scanCopyright 2002, Marchany Securing Solaris Servers Randy Marchany.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
TELE 301 Lecture 11: DNS 1 Overview Last Lecture –Scheduled tasks and log management This Lecture –DNS Next Lecture –Address assignment (DHCP)
CIS 218 Advanced UNIX 1 User and System Information CIS 218.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Unix System Administration Rootly Powers Chapter 3.
ITI-481: Unix Administration Meeting 5. Today’s Agenda Network Information Service (NIS) The Cron Program Syslogd and Logging.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
System logging and monitoring
ITI-481: Unix Administration Meeting 3. Today’s Agenda Hands-on exercises with booting and software installation. Account Management Basic Network Configuration.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
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.
Linux Network Configuration Linux System Administration /etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve"
Linux+ Guide to Linux Certification, Third Edition
Managing Users Objectives Contents Practicals Summary
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
Users Greg Porter V1.0, 26 Jan 09. What is a user? Users “own” files and directories Permission based on “ownership” Every user has a User ID (UID) 
There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?
Managing Users  Each system has two kinds of users:  Superuser (root)  Regular user  Each user has his own username, password, and permissions that.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Linux Network Services Chapter 16: Administration Tasks By Fred R. McClurg Linux Operating.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
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.
Introduction to System Admin Sirak Kaewjamnong. 2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Managing Users Objectives –to be able to add, modify and remove Unix user accounts Contents –requirements for a user account –configuration files (passwd,
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
Linux Based Networks University of Education Instructor: Muhammad Amer Irshad.
The Saigon CTT Chapter 10 Managing Users. The Saigon CTT  Objectives  Define the requirements for user accounts  Explain group and group accounts 
© 2006 ITT Educational Services Inc. Linux Operating System :: Unit 3 :: Slide 1 Downloading and Installing Software yum pirut Bit Torrent rmp.
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Lecture – Users and groups
Linux Operations and Administration
Working with users and Groups. 1. Manage users and group 2. Manage ownership, permissions, and quotas.
Linux Use the Command-Line Interface to Administer the System.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
SUSE Linux Enterprise Desktop Administration Chapter 9 Manage Users, Groups, and Permissions.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
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.
1 Dr. Tom Hicks Computer Science Department Trinity University 1.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 14 Managing.
Using Linux Kaya Oğuz Room: 310.
LINUX SYSTEM ADMINISTRATION
System Programming and administration CS 308
Basic Commands ls cp ls –l (in detail format) echo ls –a
Chapter 11: Managing Users
Ubuntu Working in Terminal
Linux Network Configuration
Chapter 2 User Management
Like tron and not kron, or chron
Linux Users and Groups Management
COP 4343 Unix System Administration
LINUX SYSTEM ADMINISTRATION
System & Network Administration (MCSA & RHCSA)
Periodic Processes Chapter 9.
Administering Users and Groups
Administering Users and Groups
Adding New Users.
Presentation transcript:

System Administration System Configuration and Logs

System Configuration Normally all configuration files are found in /etc ◦File format and settings depend on OS and distribution ◦BSD-like systems have /usr/local/etc as well

Hostname Set during boot Stored in kernel Reported by hostname (1) and gethostname (2) Not FQDN (DNS domain name) Set in /etc/hostname Set by hostname (1) ◦hostname “HOST” ◦hostname –F /etc/hostname

Hostname Lookup Done by Libc resolver ◦gethostbyname (3) ◦getaddrinfo (3) ◦…

Hostname Lookup /etc/hosts ◦Static lookup table ◦All OS have it (even Windows) ◦Format: IP Hostname Alias… /etc/resolv.conf ◦DNS Resolver (Name servers) ◦resolvconf package  Read DNS config from network config  Write settings to /etc/resolv.conf

Network Interfaces /etc/network/interfaces ◦Debian/Ubuntu specific ◦Format: interfaces (5) ◦1 block per interface

/etc/network/interfaces iface eth0 dhcp iface eth1 static address netmask gateway dns-nameservers

System Time Show with date Set with “date MMDDhhmmCCYY” Network time synchronization ◦NTP  ntpdate  ntpd ◦

ntpdate Sync time once ◦ntpdate time.stdtime.gov.tw ◦ntpdate tw.pool.ntp.org Run with cron

ntpd Actively sync time with other servers Others can query you too # Simple /etc/ntp.conf server time.stdtime.gov.tw server tw.pool.ntp.org

Daemon A program that runs in the background ◦ 常駐程式

Scheduling Jobs at ◦Run once ◦at now + 1 hours ◦at 1pm tomorrow ◦at 12:

Scheduling Jobs (cont.) cron ◦Recurring jobs at given times ◦/etc/crontab  System-wide  Need to specify user ◦cron -e  Per user # mm hh DD MM WD [user] command 分 時 日 月 星期幾 [ 使用者 ] 指令

sysctl Kernel tunable variables ◦Memory/file/network limits ◦Network buffers ◦… sysctl (8) tool ◦/proc/sys /etc/sysctl.conf

sudo Run command as another user ◦Controlled by /etc/sudoers ◦Verify using your password ◦Give people limited superuser access # Allow “admin” to run shutdown admin ALL = (root) /sbin/shutdown See sudo (8) and sudoers (5)

Users /etc/passwd ◦World readable root:x:0:0:root:/root:/bin/bash ◦login name ◦optional encrypted password ◦numerical user ID ◦numerical group ID ◦user name or comment field ◦user home directory ◦optional user shell

Users Passwords ◦Encrypted with crypt (3) ◦Originally DES  8 chars only  $1$......$ $ means MD5 crypt  $5$......$ $ means SHA-256 crypt /etc/shadow ◦Encrypted passwords are still crackable ◦Put passwords in root-only file

Groups /etc/group nogroup:x:65534: ◦Name ◦Optional encrypted password ◦Numeric group ID ◦User list

User & Group Tools useradd / groupadd usermod / groupmod userdel / groupdel adduser / addgroup deluser / delgroup /etc/adduser.conf

Logs Normally stored in /var/log syslog ◦Catch-all: /var/log/syslog Application logs

syslog Traditional syslog ◦/etc/syslog.conf Debian moved to rsyslog ◦/etc/rsyslog.conf # mail.* /var/log/mail.log See syslog (3) for facilities and priorities

Rotating logs Save / delete old logs ◦Compress old logs ◦Limit rotation to XX copies savelog (8) logrotate (8) ◦/etc/logrotate.conf ◦Run by cron

Homework 1. Write a crontab entry to reboot the system every Saturday at 1:00 AM ◦Use shutdown with correct arguments 2. Write a crontab entry to sync time using ntpdate every hour ◦Use tw.pool.ntp.org 3. Write a sudoers entry that allows you to run ntpdate without entering password ◦See sudoers (5)

Homework 4. What kind of logs are found in /var/log/auth.log? 5. Write a sequence of commands to create 5 users with a common group. ◦The common group can be the primary group set in /etc/passwd ◦Or auxiliary group set in /etc/group ◦You can use adduser, useradd or even echo

Homework Write your answers in a PDF file 1 paragraph per answer Upload to CEIBA

Tips and Wishes Read about what we went through today Command names and file names are good keywords to look for Read manpages Look around the web for more reading material Visit the Library