CyberPatriot Resources · Resource 04
Linux: Ubuntu & Mint
Use official Ubuntu, Linux Mint, systemd, and manual-page references to understand users, privilege, permissions, services, logs, remote access, firewalling, and evidence.
Linux administration can change a large amount of system state with a small command. Check scope, dependencies, and side effects before making broad changes.
Linux resource rule
Understand the command before running the command
Use documentation whenever you are uncertain about syntax, scope, dependencies, or reversibility.
Official references
Ubuntu Server Documentation
Canonical's official reference for Ubuntu Server administration, services, networking, storage, security, and troubleshooting.
Open reference →
Ubuntu Security Documentation
Official guidance covering Ubuntu security features, hardening concepts, firewalling, updates, and access controls.
Open reference →
Ubuntu Firewall Documentation
Reference material for UFW and the Linux firewall technologies underneath it.
Open reference →
Ubuntu Manpages
Searchable manual pages for commands, configuration files, utilities, and system interfaces.
Open reference →
Linux Mint User Guide
Linux Mint documentation for system operation, administration, packages, troubleshooting, and Mint-specific behavior.
Open reference →
systemd Manuals
Primary documentation for services, units, timers, dependencies, logging, and systemd administration.
Open reference →
What to study
Users & Groups
Permissions
Services
Logs & Evidence
SSH & Remote Access
Firewall & Networking
Observation command reference
idShow user identity and group membership.
getent passwdReview account entries.
getent groupReview groups and membership.
sudo -lShow allowed sudo privileges for the current user.
ps auxReview running processes.
pstree -apView parent-child process relationships.
systemctl --type=serviceReview systemd service units.
systemctl status NAMEInspect one service.
journalctl -u NAMEReview logs for one systemd unit.
ss -tulpnReview listening TCP and UDP sockets.
ip addrReview interface addressing.
ip routeReview routing state.
ufw status verboseReview UFW status and rules.
stat FILEReview file metadata.
findLocate files using ownership, permissions, time, path, and other attributes.
Important Linux paths
/etc/passwdUser-account definitions and user IDs.
/etc/shadowProtected password and account-aging information.
/etc/groupGroup definitions and membership.
/etc/sudoersPrimary sudo policy configuration.
/etc/sudoers.d/Additional sudo policy files.
/etc/ssh/sshd_configOpenSSH server configuration on many Linux systems.
/etc/systemd/system/Local systemd units and overrides.
/etc/cron.*System scheduled-task locations.
/var/log/Traditional service and operating-system logs.
Using references during competition work
An account looks unauthorized
Compare the account with the approved-user list.
Review UID, groups, shell, home directory, and privilege.
Determine whether it is a user, system account, or service account.
Preserve useful authentication evidence.
Make only the justified change and verify required access.
A service looks suspicious
Identify the service, executable, startup state, and listener.
Check whether required functions depend on it.
Review journal and configuration evidence.
Do not disable it only because the name is unfamiliar.
Verify mission functionality after any change.
Permissions look too open
Record the current owner, group, and permission mode.
Determine the intended purpose of the object.
Check whether an application depends on the existing permissions.
Avoid broad recursive chmod or chown changes.
Test the affected service or application afterward.
SSH exposure looks wrong
Confirm whether SSH is required.
Check sshd service and listening state.
Review authentication-related configuration.
Review firewall exposure.
Test the approved remote-access path after changes.
Weak habit vs better habit
Weak habit
Delete unfamiliar users immediately.
Better habit
Classify the identity, compare it with the scenario, and check privilege and dependencies first.
Weak habit
Use chmod -R to fix permissions quickly.
Better habit
Change only the specific file or directory whose intended permissions are understood.
Weak habit
Disable every unfamiliar service.
Better habit
Inspect the service, process, listener, dependencies, logs, and mission purpose first.
Weak habit
Restart when the system behaves strangely.
Better habit
Collect process, service, log, configuration, and network evidence before considering a reboot.
Weak habit
Disable SSH because remote access is dangerous.
Better habit
Confirm mission requirements and secure only the exposure or authentication settings justified by evidence.
Weak habit
Run a remembered command without checking it.
Better habit
Use the man page or official documentation when the command's scope or side effects are uncertain.
Linux resource checklist
Use official Ubuntu, Mint, systemd, and man-page references first.
Classify accounts before changing or removing them.
Review sudo and group membership when evaluating privilege.
Avoid broad recursive chmod and chown operations.
Understand service purpose and dependencies before disabling it.
Use journalctl and appropriate log files to support conclusions.
Preserve evidence before removing suspicious persistence.
Confirm whether SSH is required before changing remote access.
Map listeners to owning processes and services.
Review UFW or the system's intended firewall carefully.
Verify required services and network access after changes.
Let the competition scenario determine what must remain functional.