Welcome to CSIA430 UNIX/Linux Administration & Security. In this class you will learn about Linux Administration, how to install and configure Linux, how to use a package manager to install software, how to setup networking, how to manage users and user accounts, how to install and configure services such as NFS and HTTP, and how to ensure that your Linux computers are secure. During the class you won’t just read about these activities, you will also gain hands-on experience administering and securing Linux based systems.
Note that this class assumes you are able to use Linux commands to perform basic tasks such as changing directories, listing files in a directory, copying files and folders, creating and deleting files and folders, reading and setting permissions, etc. If you lack these pre-requisite skills or you need help learning how to use the Linux command line interface you should check out the Linux Command Line class.
1 – Class Introduction
2 – Review of the Linux Commands, Pipes, shells, etc.
3 – Installation
- READ THIS ENTIRE DOCUMENT BEFORE STARTING- Instructions for next 4 Modules, Homework and Tests (PDF)
- Homework 2 (PDF) Use this to determine your answers. You must enter your answers in Canvas to receive credit.
- Test 2 Questions (PDF) – These are the same questions as in the Test 2 Module. I just posted them here to ensure you grab them now.
- [OPTIONAL] – Background information on Linux Distributions, and References for Oracle Virtual Box, and Centos
- [OPTIONAL] Background information Linux Distributions
- [OPTIONAL] Oracle VirtualBox References
- [OPTIONAL] Centos References
- Creating a Virtual Machine to run Linux
- Introduction & Overview of the VM Creation Process (Video)
- Creating a Virtual Machine to run Linux Step 1 – Installing Oracle Virtual Box (Video)
- Creating a Virtual Machine to run Linux Step 2 – Downloading the Linux ISO (Video)
- Creating a Virtual Machine to run Linux Step 3 – Creating the New Virtual Machine in Virtual Box (Video)
- [OPTIONAL] Troubleshooting VM Problems – From The CSIA200 Class (Video)
- Creating a Virtual Machine to run Linux Step 4 – Installing Centos 7 Minimal Install with Mouse Fix (Video)
- Creating a Virtual Machine to run Linux Step 5 – Installing Centos 7 Desktop Install with Mouse Fix (Video)
- Shutting Down A Linux Server Gracefully (Video)
- Basic Setup
- Basic Setup – Starting the Network on Centos 7 Minimal, In case you didn’t set it to start automatically during the install (Video)
- Basic Setup – Changing the Hostname (/etc/hostname) (Video)
- Basic Network Setup 1: Checking NICs and TCP/IP (Video)
- Basic Network Setup 2: ssh Install, Enabling and Allowing Through Firewall (Video)
- Basic Network Setup 3: Local Testing of Network Stack (Video)
- Basic Network Setup 4: Remote Testing and VM Port Forwarding (Video)
- Basic Network Setup & Testing Reference with ssh Command Reference (HTML)
- Guest Additions
- Linux Partitioning – In Case the Distribution Does Not Have Auto Partitioning
- Basic Partitioning (Video)
- Selecting Partitions and Sizes (Video)
4 – Packages
5 – Adding & Managing Users and Groups
- Adding A Single New User
- Changing User Account Settings For Existing Users
- Changing Default Settings For Creating New Users
- Adding Multiple Users
- Groups
6 – Password Aging and Complexity
- Changing Password Aging Settings
- Password Complexity
- Password Complexity Rules – Introduction (Video)
- Setting Password Minimum Length, Character Classes (Video)
- Setting Number of Characters From Each Class (Video)
- Preventing character repetition 1111 and sequences 1234 (Video)
- Checking passwords to ensure information in gecos (finger) is not included with gecoscheck (Video)
- Prohibiting Specific Words (Video)
- Building a dictionary of prohibited passwords (Video)
- Checking User Accounts and Passwords for Consistency (Video)
- Account Inactivity, Expiration and Lockout
7 – Managing Services With systemctl
8 – Firewall
- [OPTIONAL] Firewall Tutorials – If you don’t know what firewalls do (HTML)
- firewall-cmd commands reference page (HTML)
- Firewall Introduction and Overview (Video)
- Firewall Terminology, Installation, and Status Check (Video)
- Firewall Adding and Removing Services, Permanent vs. Runtime Configuration Changes (Video)
- Advanced Firewall Commands (Video)
- Firewall Data Files (Video)
9 – Web Server
- Web Server Introduction – Web Server Introduction & Background (Video)
- Starting Web Server and Connecting From VM Host (Video)
- Web Server Installation and Startup Process Commands (HTML)
- Changing the Default Web Page Content (Video)
- Sample Web Pages (.zip)
- Accessing Web Server Using Port 80 (Video)
- Accessing Web Server By Name Using Local Host File (Video)
- [OPTIONAL] Using netsh to automatically connect to a different network port (HTML)
- Accessing the Web Server Using The Real IP Address (Video)
- [OPTIONAL] HTML References (Just in case you want to learn more HTML)
- Virtual Web Hosting (Multiple Web Servers)
- Setting Up Virtual Hosting Step 1: Configuring Virtual Web Servers in vhost.conf (Video)
- Example vhost.conf file (.txt)
- Setting Up Virtual Hosting Step 2: Creating the Document Root Directory, Adding Content and Background on DocumentRoot/WebRoot (Video)
- Setting Up Virtual Hosting Step 3: Adding Virtual Host Name to DNS and Testing (Video)
- Setting Up Virtual Hosting: Demonstration of All the Steps (Video)
10 – Host Only Networking (Building an internal network for the VMs)
- Host Only Network Instructions and Commands (PDF)
- Host-Only Networking Background Host-Only vs. NAT (Video)
- Step 1 – Setting up the Network in Virtual Box Manager (Video)
- Step 2 – Add a 2nd Network Card (Adapter) to the VM (Video)
- Step 3 – Configuring the new Host Only network adapter in the Linux VM (Video)
- Debugging and Troubleshooting Host Only Networking (PDF)
11 – File Sharing with Samba & NFS
- NFS
- SAMBA
- Introduction to Samba, Installation, and Configuration (Video)
- Samba Installation and Configuration Command Reference (HTML)
- [OPTIONAL] Samba Setup Commands Only (Video)
- Samba testing and Windows 10 Education fix (Video)
- [OPTIONAL] SELinux Background (Youtube)
12 – Security
- Vulnerability Assessment with Tenable Nessus