Rogue Security Wiki

Study notes covering Maintaining Services.

Author: Dylan Barrett

Date: 03/09/2026


📖 Useful Vocabulary / Acronyms

Terminology Definition
Kernel All operating systems have a kernel, which is a low-level piece of code responsible for controlling the rest of the operating system
Daemon A program that runs in the background without the need for human intervention
PID A unique number assigned to each new process when it starts so that it can be identified by the system and users
Service A service, or daemon, is typically a non-interactive process that runs in the background to support an OS or application function, such as Plug-and-Play, the print spooler, and DHCP. In Windows, services can be viewed, configured, and started/stopped via the Services console, msconfig, and the Processes tab in Task Manager.
Daemon A program that runs in the background without the need for human intervention.
NTP Application protocol allowing machines to synchronize to the same time clock that runs over UDP port 123.
NFS Remote file access protocol used principally on UNIX and Linux networks.
CUPS A print management system for Linux that enables a computer to function as a print server.
Secure Shell (SSH) Application protocol supporting secure tunneling, remote terminal emulation, and file copy. SSH runs over TCP port 22.

Configure Services with Systemd

System Initialization

systemd Unit Files

The emergency.target file

Service Unit Files

Timer Unit Files

Mount Unit Files

Target Unit Files

systemctl commands

Service Failures

systemd tools

Configure Common System Services

System Service Configuration Basics

Network Time

Precision Time Protocol

Task Scheduling

The cron Scheduler

Configure at

Configure anacron

Webserver Configuration

A lot of Linux Web Servers are deployed with the LAMP Stack:
L: Linux operating system
A: Apache webserver
M: MySQL or MariaDB database
P: PHP web programming language

# Edit the configuration file with
sudo nano /etc/httpd/conf/httpd.conf
# Make the following changes
Listen localhost:80
DocumentRoot "/var/www/html"
# Allow port 80 through the firewall
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --reload
# Create a simple hello world webpage
sudo nano /var/www/html/index.html
chown apache:apache /var/www/html/index.html
# Start the Apache HTTPD service
systemctl enable httpd
systemctl start httpd

Network File System Configuration

# Enable the NFS Service
systemctl enable nfs-server
systemctl start nfs-server
# Select directories that you would like shared
/LinuxNas/School 192.168.10.0/24(rw,sync) # Shared on the 192.168.10.0/24 subnet and users will have read write access
/LinuxNas/media *(ro,sync) # Shared with any and users will have read only access
# Display shared directories on the remote file server
showmount -e LinuxNFSServer

Samba File Sharing Configuration

You may need to configure Linux to access folders shared on Windows, or allow Windows to connect to resources on your Linux Machine. Samba allows for
File sharing
Printer sharing
Network browsing for shared folders
Authentication to Windows Active Directory

# View folders on server1 that the current user has access to 
smbclient -L //server01 -U%
# View what Samba Shares are available on your current machine
smbclient -L //localhost
# Connect to a share named 'media' on 'server1' as 'user01'
smbclient //server01/media -U% user01

Printing Configuration

# Enable the CUPS service and start 
systemctl enable cups
systemctl start cups

Apply Localization Settings

Output Modification

System Localizaition

The localectl command