linux.observer
← All labs

Linux services and permissions / Intermediate / 20–30 min

The service that cannot read its configuration

A non-root service starts but reports unhealthy because it cannot read its configuration. Investigate its identity and file permissions.

LAB IDlinux-02-unreadable-service-configTRACK / linux.observer
Hard disk and server storage for a Linux troubleshooting lab

The scenario

A service in a disposable container responds with an error after startup. Restore access to its configuration without running the service as root or making the file writable by other users.

Mission objectives

  • Inspect the service logs and process identity.
  • Restore read access to the lab configuration without making it group- or world-writable.
  • Verify the non-root service responds successfully.

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/linux-02-unreadable-service-config.sh
less linux-02-unreadable-service-config.sh
bash linux-02-unreadable-service-config.sh
cd labs/linux-02-unreadable-service-config
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare the service process identity with the ownership and mode of its configuration file.

Hint #2

Inspect the lab container as root when adjusting file access; keep the application running as its original non-root user.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.