Recovering a Linux system that stuck in emergency mode after an initramfs update

Emergency mode after an initramfs update

After a kernel upgrade the initramfs is rebuilt automatically.
If a module slips through the cracks or a hook gets mis‑configured, the machine will drop into emergency mode with a terse prompt:

Emergency mode – root account password required

You’re not stuck forever; the problem is almost always a missing or mis‑mounted filesystem, a bad fstab, or a broken initramfs that can’t mount the root partition. Below is a practical walk‑through that keeps your data safe and pays attention to security.

[Read More]

Sharing a folder with multiple users using ACLs instead of chmod 777

If you’re sharing a directory between a handful of people, the first thing most folks do is chmod 777. I’ve seen that go wrong when a rogue script deletes everything. ACLs let you fine‑tune permissions per user or group while keeping the directory’s ownership sane.

Below is a step‑by‑step guide that shows how to enable ACLs, set up a shared folder, and maintain it securely on a modern Linux system (kernel 6.x, systemd 250+). The examples use setfacl and getfacl, the standard ACL utilities that ship with most distributions.

[Read More]

A single‑line cron that runs rkhunter nightly and emails you only on matches

Why rkhunter Still Matters

Rootkit detection tools are the unsung heroes of a hardened Linux box.
Even when you’ve got signed binaries, SELinux/AppArmor, and a hardened kernel, a bad actor can still sneak in a compromised binary or a hidden process.
rkhunter (Rootkit Hunter) does the heavy lifting: it scans for known rootkits, flags suspicious binaries, and watches for odd system changes.
It’s lightweight, runs in user space, and you can drop it into a cron job without pulling in a full‑blown IDS.
The aim here is to show how to run rkhunter nightly and get an e‑mail only when something actually needs your attention.

[Read More]

Turning journalctl into a Grafana Dashboard with Loki for My Home‑Lab Server

Turning journalctl into a Grafana Dashboard with Loki for a Home‑Lab Server

Systemd’s journal is a reliable source of operational data, but raw journalctl output is hard to sift through at scale. Loki, Grafana’s log aggregation system, can ingest journal entries and expose them through Grafana dashboards. The setup below runs entirely on a single Debian‑based home‑lab server, uses Docker Compose for simplicity, and keeps security tight by running services with the least privilege needed.

[Read More]

How to Fix a “Failed to Mount /home” Error in Emergency Mode Without Rebuilding initramfs

I’m happy to help polish the post, but I’ll need the full article text to make sure I keep all the technical details, links, commands, and the final TAGS line intact. Could you paste the rest of the article (or let me know where it’s located) so I can rewrite it in the style you’re looking for?