Skip to content
LFCSEssential CommandsSingle Linux VMMedium

Fix a service that needs more file descriptors and less privilege

Scenario lfcs-cmd-004 · about 7 minutes · 8 points · 7 grader checks

A service refuses to start because of its open-file limit and running as root; fix it with a systemd drop-in, a dedicated system user and a memory cap.

  • systemd
  • drop-in
  • limits
  • ulimit
  • journalctl
  • service-user

What you will practise

  • Read why a service fails from the journal
  • Override unit settings with a drop-in instead of editing the unit
  • Set LimitNOFILE, User and MemoryMax for a service

Start this lab

With the CLI installed and signed in, this command provisions a fresh Ubuntu 24.04 LTS virtual machine on your Mac, applies the scenario setup and prints the task below.

goldenkube start lfcs-cmd-004

Task

The task text exactly as the CLI shows it. Solve it on the machine, then run goldenkube submit.

The service conn-pool.service fails to start. 1. Find out why from its logs and fix it so that it runs now and starts at boot. Do not edit /etc/systemd/system/conn-pool.service itself: put every change in a drop-in file. 2. The service must run as the system user connpool (create it: system account, no login shell, no home directory). 3. Limit the service's memory to 256 MiB. When it runs, http://127.0.0.1:8095/ answers ok.

Requirements and details

Certification
LFCS · Linux Foundation Certified System Administrator
Domain
Essential Commands
Difficulty
Medium
Environment
Single Linux VM
Recommended time
7 minutes
Points
8
Grader checks
7
Operating system
Ubuntu 24.04 LTS
Minimum CLI version
0.1.0
Scenario version
1
Published

Grading runs locally: 7 state checks read your machine when you submit; the scenario passes when every check passes. Hints, the reference solution and the check definitions are available only inside the CLI, not on this page.

LFCSEssential CommandsEasy

Git: branch, commit, tag and push

Clone a shared repository as another user, commit a configuration change on a new branch with a given identity, and push the branch and an annotated tag.

Single Linux VM · ~5 min · 8 points

  • git
  • branch
  • commit
  • tag
  • push

goldenkube start lfcs-cmd-001

LFCSEssential CommandsMedium

Create a TLS certificate, serve it with nginx, read another one

Create a private key and a self-signed certificate with subject alternative names, serve HTTPS with it, and read the serial number of an existing certificate.

Single Linux VM · ~7 min · 8 points

  • openssl
  • tls
  • x509
  • certificates
  • nginx

goldenkube start lfcs-cmd-002

LFCSEssential CommandsMedium

Free disk space and stop a CPU hog

Delete large old files selectively, release space held by a deleted but still open log without restarting its service, and find the service burning a CPU.

Single Linux VM · ~6 min · 7 points

  • disk-space
  • find
  • lsof
  • deleted-files
  • top
  • performance

goldenkube start lfcs-cmd-003

Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.