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:
The following command displays information about a user's identity and group membership:
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:
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:
An example server address on that network might be:
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:
Testing Connectivity
The ping command can help determine whether another host can be reached across an IP network.
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:
A service can be restarted with:
Processes
A process is a running instance of a program. Administrators frequently inspect processes when investigating performance or application problems.
An interactive view of running processes can also be displayed with:
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.
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
- Identify the reported problem.
- Determine what changed.
- Check basic connectivity and system status.
- Review logs and error messages.
- Develop a likely cause.
- Test one change at a time when practical.
- Verify that the service works correctly.
- 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.
- What is the primary role of a system administrator?
- What is the purpose of DNS?
- What is the difference between a user account and an administrator account?
- What Linux command can display the current IP address?
- What is the purpose of a firewall?
- Why should administrative privileges be limited?
- Why should backups be tested?
- What should an administrator check when a network service stops responding?