Skip to content
EgyKode
01 · FoundationsLab 1 / 59
Guided lablinux

Linux Server Administration

Create users and groups, set permissions that actually hold, and manage services and packages on a server you did not build.

Time
45 min
Level
Beginner
Objectives
4 objectives
Cost
Free

Where this fits in the platform

Before you start

You will need

  • Any Linux (Ubuntu 22.04+ or RHEL 9)
  • sudo access

You do not need these already — the lab environment below provides them.

You will be able to

  • Create users and groups with correct ownership and permissions
  • Read and set permissions without reaching for chmod 777
  • Manage packages and services, and make them survive a reboot
  • Find what is consuming disk on a server that is full

CostFree

— runs on any Linux machine, a VM, or a container

Nothing to pay in the browser. Open the terminal runs this against a simulated cloud — the same API calls and the same commands, with no account and no bill. The figure above applies only if you build it in your own.

The scenario#

You have been handed SSH access to a server somebody else built. A colleague needs to deploy to it, the application directory is owned by root, and the disk is at 91%. Nobody documented any of it.

This is the most common first task in the job, and none of it is exotic — it is users, permissions, services and disk.

Hands-on environment

Run this lab in a real terminal, free and in your browser. The environment is temporary and yours alone — break it as much as you like.

Open the terminal

Opens in Killercoda, in a new tab — keep this page open for the steps.

Run it on your own machine

Run this lab on your own machine. One command starts the environment, with everything the lab needs already installed:

Run these against the node1 container rather than the controller — it is the machine with systemd. From the controller: `ssh node1`, or prefix a command with `ansible node1 -b -m shell -a "…"`.

You will need:

  • bash
git clone https://github.com/EgyKode/EgyKode-lab.git
cd EgyKode-lab
./egykode start
./egykode shell
ssh node1

You need Docker and Git installed. Everything else runs inside the environment. The first start downloads it and takes a few minutes; later starts are seconds.

Not sure what you already have? Run: npm run doctor — it checks and changes nothing.

Anything you tick here is your own record. EgyKode cannot see inside that terminal, so the success criteria stay self-assessed even when the environment checks your work for you.

A user for the job, not for the person

Step 1 of 4

The work#

Success criteria

0 of 4

The concept behind it

Ready to try it without help?Do the challenge

Next up

Lab 1 of 59 on the project path

Linux Processes, Services & LogsFind the process, read what it actually said, and restore a service that will not start.Why next: A Linux server you can navigate, inspect and administer45 minBeginner