Introductory Training

System Administration Fundamentals

A basic introduction to administering computer systems. This training covers operating systems, user accounts, permissions, networking, services, security, backups, and common troubleshooting techniques.

1. What Is System Administration?

System administration is the process of configuring, maintaining, securing, and troubleshooting computer systems and the services that run on them.

Responsibilities of a System Administrator

A system administrator may be responsible for installing operating systems, creating user accounts, managing permissions, installing updates, monitoring systems, configuring networks, maintaining backups, and resolving technical problems.

The primary goal is to keep systems available, secure, reliable, and properly configured.

Operating Systems

An operating system manages the computer's hardware and provides the environment in which applications and services operate.

Common server operating systems include Linux distributions such as Ubuntu, Debian, and Red Hat Enterprise Linux, as well as Microsoft Windows Server.

2. Users and Permissions

Administrators control who can access a system and what each account is permitted to do.

User Accounts

Each user should normally have an individual account. Accounts allow the operating system to identify users and apply appropriate permissions.

On Linux, the following command displays the currently logged-in user:

whoami

The following command displays information about a user's identity and group membership:

id

File Permissions

Linux permissions determine who can read, modify, or execute files and directories.

Permission Symbol Purpose
Read r Allows data to be viewed.
Write w Allows data to be modified.
Execute x Allows a file or program to be executed.

File permissions can be viewed with:

ls -l

3. Networking Basics

Servers communicate with other computers through networks. System administrators should understand basic addressing, DNS, gateways, ports, and network troubleshooting.

IP Addresses

An IP address identifies a device on an IP network. A server may use a static address so other devices can consistently locate it.

Private IPv4 networks commonly use address ranges such as:

192.168.1.0/24

An example server address on that network might be:

192.168.1.20

DNS

The Domain Name System, or DNS, converts names into IP addresses. This allows users and applications to locate systems by name instead of remembering numerical addresses.

A DNS lookup can be performed with:

nslookup example.com

Testing Connectivity

The ping command can help determine whether another host can be reached across an IP network.

ping 192.168.1.1

If communication fails, an administrator may investigate the local network configuration, gateway, firewall, routing, DNS, or remote system.

Ports

Network services listen on numbered ports. Ports allow multiple network services to operate on the same IP address.

Service Default Port
SSH 22
DNS 53
HTTP 80
HTTPS 443

4. Services and Processes

Servers normally run background programs that provide functionality to users and other systems.

Services

Examples include web servers, DNS servers, database servers, file servers, and remote administration services.

On many Linux systems using systemd, administrators can check the status of a service with:

systemctl status servicename

A service can be restarted with:

sudo systemctl restart servicename
Important Restarting a service can temporarily interrupt users or applications that depend on it. Administrators should understand the impact before making changes.

Processes

A process is a running instance of a program. Administrators frequently inspect processes when investigating performance or application problems.

ps aux

An interactive view of running processes can also be displayed with:

top

5. Basic System Security

Security is a fundamental part of system administration. Administrators should reduce unnecessary access while keeping systems updated and monitored.

Principle of Least Privilege

Users and applications should receive only the permissions necessary to perform their required tasks.

Administrative privileges should not be used for ordinary work when they are unnecessary.

Updates

Operating systems and applications should receive appropriate security updates. Updates often correct vulnerabilities, software bugs, and reliability problems.

Firewalls

A firewall controls network communication according to a defined set of rules.

Administrators should expose only the network services required for the system's intended purpose.

Authentication

Strong passwords and multifactor authentication should be used when supported. Default passwords should be changed, and unused accounts should be disabled or removed.

6. Backups

Backups provide copies of important information that can be recovered following accidental deletion, hardware failure, corruption, or another unexpected event.

Backup Fundamentals

Important systems should have a documented backup strategy. Backups should be performed regularly and stored separately from the primary copy of the data.

A backup is only useful if the information can actually be restored. Administrators should therefore test restoration procedures periodically.

Remember Redundancy and backups serve different purposes. Having redundant storage does not eliminate the need for backups.

7. Basic Troubleshooting

Effective troubleshooting involves identifying the problem, collecting information, testing likely causes, and verifying that the final solution actually resolves the issue.

A Simple Troubleshooting Process

  1. Identify the reported problem.
  2. Determine what changed.
  3. Check basic connectivity and system status.
  4. Review logs and error messages.
  5. Develop a likely cause.
  6. Test one change at a time when practical.
  7. Verify that the service works correctly.
  8. Document the problem and solution.

Useful Linux Commands

Command Purpose
whoami Displays the current user.
pwd Displays the current directory.
ls Lists files and directories.
df -h Displays filesystem space usage.
ip addr Displays network interface information.
ping Tests basic network reachability.
nslookup Performs DNS queries.
top Displays running processes and resource usage.
systemctl Manages services on systemd-based Linux systems.

8. Knowledge Review

Use these questions to review the basic concepts covered in this training.

  1. What is the primary role of a system administrator?
  2. What is the purpose of DNS?
  3. What is the difference between a user account and an administrator account?
  4. What Linux command can display the current IP address?
  5. What is the purpose of a firewall?
  6. Why should administrative privileges be limited?
  7. Why should backups be tested?
  8. What should an administrator check when a network service stops responding?