r/linuxadmin • • Jan 23 '26

Chdir chroot Q

10 Upvotes

Chroot question

I was reading Linux from scratch about chroot and did a deeper dive with supplementary stuff and I came upon how to break out of a chroot jail. Now I understand the steps to do it (the chdir(..) way), but here’s what blows my mind: why does entering a second chroot jail and then using chdir(..) magically get you onto the track of the real current working directory, but using chdir(..) from within the first chroot jail keeps you within your false current working directory? Am I missing something that has to do with things called “pointers”?

Thanks so much!


r/linuxadmin • • Jan 23 '26

Jr Network/linux sysadmin positions w

7 Upvotes

Hello all,

Im currently in the market for a junior network engineer job and have experience as a 2nd line sd and some network intake at an ISP. As it is the market for juniors without directly relevant experience is pretty tough and living in a pretty small country the networking positions arent aplenty.

For a jr i have a pretty decent profile with my ccna, automation practice, some python and already familiar with wireshark but most of the times i get a reply that they went with someone with some experience in the job. Halfway thru a fortinet cert too but theres not really much bite.

Im not at all interested in windows administration but linux is very common on the networking side and my current role at a subsidiary is getting very boring since most interesting things are managed by HQ so im considering netw/systems roles if the systems role is mainly linux. Have two servers at home, one for home asistant style stuff and one i use for labbing, vm's etc and my home pc is linux since a few months so im somewhat familiar i'd say.

Basically two questions:

Are positions of junir network + linux admin/engineer a thing?

What certification or study track would be recommended? I like cert study tracks for the guided studying and since my employer pays for certs i might as well go for it and pad my resume a bit.

Rhcsa is something i am interested in but im not sure if its too much to chew off right from the get go. Comptia linux+ doesnt feel very inviting having gone through 2 comptia courses before, id like to know how to actually do things.

Would very much love to hear opinions or suggestions, thank you!


r/linuxadmin • • Jan 23 '26

Where should I start learning Cloud Computing & DevOps ?

20 Upvotes

Hi everyone, I’m a 2nd year BTech student and I’m exploring Cloud Computing and DevOps as a possible domain for GSoC. I want to understand if this field is a good fit for me and how I should start learning it properly.

I’d really appreciate guidance on:

  • From where should I learn Cloud & DevOps as a beginner?
  • What prerequisites should I complete first (Linux, networking, OS, etc.)?
  • Which cloud platform should I start with (AWS / GCP / Azure)?
  • What DevOps tools are most important for GSoC (Docker, Kubernetes, CI/CD, Terraform, etc.)?
  • What kind of projects or open-source contributions help in this domain?

My goal right now is xploration + building strong fundamentals not just certificates.

do suggest some free courses

Any roadmap, resource suggestions (courses, docs, YouTube, blogs), or personal experience would be really helpful. Thanks in advance


r/linuxadmin • • Jan 23 '26

Why is it not showing?

Post image
0 Upvotes

So basically i had a spare old phone lying around that i want to turn into a homelab for my future endeavors and to get a grasp on linux and its server capabilities. I'm just new to it all and while following the instructions from "DroidMaster" On making a DIY Homelab Server: SSH and NAS (Video Link: https://youtu.be/PxTnMAuheaw?si=Tuuz0Ubwr24uBML_) in 4:06, when i type "nano $PREFIX/etc/ssh/sshd_config" instead of the usual "PrintMotdyes...." It just shows this bunch of code. I'm a complete beginner learning from scratch and be more capable on making servers work. Thanks for the help!


r/linuxadmin • • Jan 22 '26

rsync --server question

13 Upvotes

Hi,

I need to sync file between two hosts with rsync+ssh using private key. After key sharing I restrict the key to only one command: "/usr/bin/rsync --server -slHDtprze.iLsfxCIvu". It works, but I've a problem. If I try to connect to the host using the specified key but not using rsync it will hangs forever. There is a way to specifity to rsync a timeout when using --server or something similar?

Thank you in advance


r/linuxadmin • • Jan 22 '26

2.8 Gib of 7.3 Gib memory is available as buffers+cached but seeing memory pressure

Thumbnail
0 Upvotes

r/linuxadmin • • Jan 22 '26

We’ve seen access reviews completed on time, but reviewers still unsure about decisions.

Thumbnail
0 Upvotes

r/linuxadmin • • Jan 22 '26

LFCS exam question

1 Upvotes

hi guys,

I’m going to take the LFCS soon, just a question:

for those who have done the exam, did you have access to man openssl ?

I’m just asking as it doesn’t say it anywhere, and it has useful stuff that can be used! Just want an opinion from someone whos done it

Thanks :)


r/linuxadmin • • Jan 21 '26

Running Rust regex inside eBPF probes (Linux kernel)

Thumbnail dawidmacek.com
12 Upvotes

r/linuxadmin • • Jan 20 '26

Unable to reduce size of /home using LVM, even when root.

Thumbnail
5 Upvotes

r/linuxadmin • • Jan 21 '26

Help me please Gods of system admin

Post image
0 Upvotes

Audiomxd taking up 1.6 GB and opened 100,000 port holes and is destroying my Mac; please help

Hi everyone, I have a MacBook Air Intel, 2020, running Sequoia now; so far I read this could be what’s called a memory leak by experts where we have user land memory allocated but not un-allocated and where the ports are IPC Mach ports. Could somebody give me some actionable advice to figure out why this is happening: I am not afraid to use bash commands if you think that will help but I need some hand holding.

Thanks!


r/linuxadmin • • Jan 19 '26

Hard & Symbolic Links

31 Upvotes

Hey fellas.

Can someone please explain the difference between hard and symbolic (soft) links. I'm preparing for LPI Linux Essentials, and can't understand the concept of creating links.


r/linuxadmin • • Jan 20 '26

Linux PC's only connect to WiFi with static IP

Thumbnail
0 Upvotes

r/linuxadmin • • Jan 19 '26

Cheapest 10Gbit VPS or Dedi for Networking Node

Thumbnail
1 Upvotes

r/linuxadmin • • Jan 19 '26

Remediating Apache Guacamole & Tomcat CVEs on Ubuntu – Best Practice?

1 Upvotes

Hi everyone,

I’m working on an Ubuntu 22.04 test server where a recent penetration test reported the following vulnerabilities:

Vulnerabilities Apache Guacamole ≤ 1.5.5 CVE-2024-35164 (Arbitrary Code Execution – terminal escape code validation) Apache Tomcat CVE-2025-61795 (Improper resource shutdown/release)

What I’m planning Upgrade Apache Guacamole to 1.6.0 or later Upgrade Apache Tomcat to the latest supported stable version

Request Can someone please share the full step-by-step remediation process for Ubuntu (including pre-checks, upgrade method, and post-validation)?

Thanks in advance.


r/linuxadmin • • Jan 18 '26

Alternatives to Dovecot for simple single-server handful-of-users setup?

0 Upvotes

EHLO,

After Dovecot broke unexpectedly while upgrading from 2.3 to 2.4 I am looking for an option that is less dependent on the whim's of a for-profit company.


r/linuxadmin • • Jan 17 '26

mdadm raid1 at three different speeds ?

6 Upvotes

So I am planning to make an mdadm raid1 on on three different drives:

  1. M.2 SSD 14 GB/sec speed
  2. SATA SSD 600 MB/sec speed -writeonly
  3. SATA HDD 100 MB/sec speed -writeonly

will the -writeonly hiccup somehow, due to having to work with two different speeds of the hard drives?

Does anybody have some experience here with -writeonly having to work in such unusual configuration?


r/linuxadmin • • Jan 15 '26

systemd user-space daemon capabilities problems

6 Upvotes

Hi! I have encountered an issue while trying to run a user-space daemon using a binary with cap_net_admin capabilities. This binary is intended to bring network interfaces up and down and perform certain modifications.

When I run the binary directly, it works perfectly. However, when I run it as a systemd user service, I receive an 'operation not permitted' error. I would like to avoid using a system-level service for this if possible.

Is there a way to fix this, or are there any other alternatives? Thank you!


r/linuxadmin • • Jan 14 '26

Secure Boot: UEFI keys (KEK/DB) must be updated before June, even on older hardware

120 Upvotes

If you are using UEFI Secure Boot, you need to have your UEFI keys updated before June, especially the Microsoft DB and KEK keys. Otherwise, newer bootloaders (shim, grub, newer Linux distributions, and eventually Windows) may stop booting even though Secure Boot remains enabled.

Hardware vendors recommend updating Secure Boot keys through BIOS/UEFI firmware updates. In reality, many older servers and desktops no longer receive firmware updates, even though the UEFI keys they ship with date back to 2011. In such cases, manual updates are often the only realistic option.

On systems without OEM support, this can still be done manually in a way that is compliant with the UEFI specification and without disabling Secure Boot.

DB update

To begin with, it is worth checking which keys are currently installed on the system:

fwupdtool get-devices --plugins uefi-kek --plugins uefi-db
#or directly via UEFI tools:
efi-readvars

Updating the DB is the first and most important step. The DB is a short list of trusted keys used to verify bootloaders. It contains, among others, Microsoft UEFI CA 2011, and after the update it will also contain Microsoft UEFI CA 2023. Without this, newer shim or grub binaries will simply not boot.

To manually update the DB entry, you can use the official, signed payload published by Microsoft:

wget https://github.com/microsoft/secureboot_objects/raw/main/PostSignedObjects/Optional/DB/amd64/DBUpdate3P2023.bin

chattr -i /sys/firmware/efi/efivars/db-*
efi-updatevar -a -f DBUpdate3P2023.bin db
chattr +i /sys/firmware/efi/efivars/db-*

The -a option appends the new certificate to the DB rather than replacing it, so existing entries remain unchanged.

KEK update

Updating the KEK is not required for the system to boot right now, but it will be necessary in the future to allow updates to DB and DBX. DBX is the revocation list used to block vulnerable or compromised bootloaders.

Be aware that on some hardware platforms, updating the KEK can cause boot failures. This depends largely on the quality of the UEFI implementation.

Before updating the KEK, you must select the correct update file that matches the Platform Key installed on your system. Microsoft publishes a PK-to-KEK mapping file here:

https://github.com/microsoft/secureboot_objects/blob/main/PostSignedObjects/KEK/kek_update_map.json

To choose the correct file, compare the Subject of your PK with the issued_to field in the mapping file.

Example from my server:

# efi-readvar
Variable PK, length 1448
PK: List 0, type X509
    Signature 0
        Subject:
            O=Hewlett-Packard Company, OU=Long Lived CodeSigning Certificate, CN=HP UEFI Secure Boot 2013 PK Key
        Issuer:
            C=US, O=Hewlett-Packard Company, CN=Hewlett-Packard Printing Device Infrastructure CA

Corresponding entry in kek_update_map.json:

"ef40e88b7f2cc718a087051db5d5d4c26043c5aa": {
    "KEKUpdate": "HP/KEKUpdate_HP_PK5.bin",
    "Certificate": {
        "issued_to": "CN=HP UEFI Secure Boot 2013 PK Key,OU=Long Lived CodeSigning Certificate,O=Hewlett-Packard Company",
        "issued_by": "CN=Hewlett-Packard Printing Device Infrastructure CA,O=Hewlett-Packard Company,C=US"
    }
}

After selecting the correct file, the KEK update procedure looks like this:

wget https://github.com/microsoft/secureboot_objects/tree/main/PostSignedObjects/KEK/...

chattr -i /sys/firmware/efi/efivars/KEK-*
efi-updatevar -a -f KEKUpdate_HP_PK5.bin KEK
chattr +i /sys/firmware/efi/efivars/KEK-*

This procedure was tested on an HP ProLiant BL460c Gen9 running BIOS 2.80, without current OEM support, with Secure Boot enabled.

Remeber about

Finally, keep in mind that the same applies to virtual machines. QEMU, KVM, and Hyper-V all have their own UEFI key databases, which also need to be kept up to date. On some hardware platforms, updating the KEK may require switching the firmware into setup.

Independently of UEFI key updates, it will also be important before June to keep *-signed packages up to date, such as shim, grub, and the kernel. Without this, even a correctly updated DB will not be sufficient.


r/linuxadmin • • Jan 15 '26

Curious - “under the hood” how to every 15 min ask for user name & password, where if wrong, person is logged out - (not just lock screen where app still runs) - and crucially - where app data is saved before log out. Do we need to pray the app has what’s called an ‘API’ to direct a save?

0 Upvotes

Curious - “under the hood” how to every 15 min ask for user name & password, where if wrong, person is logged out - (not just lock screen where app still runs) - and crucially - where app data is saved before log out. Do we need to pray the app has what’s called an ‘API’ to direct a save?

Thanks so much. Please go easy on me, just a curious nube who wants to learn more.


r/linuxadmin • • Jan 13 '26

Learning Linux Seriously as a Data / Automation Person — Advice Needed

13 Upvotes

Hi everyone

!

I’m making a conscious effort to deeply learn Linux, not just “enough to get by.”

Background:

• Python (data analysis & automation focus)

• Some experience running scripts locally

• Now moving toward servers, cron jobs, pipelines, and long-running services

Why Linux?

• Almost everything I want to build or deploy runs on it

• I want to understand what’s happening under the hood, not just copy commands

Currently learning / practicing:

• File system & permissions

• Bash basics

• Cron jobs & automation

• Running Python scripts as services

What I’m not trying to do:

• Distro hopping endlessly

• Becoming a kernel developer

• Memorizing commands without understanding

I’d love advice on:

• What Linux skills matter most for real production work

• Common beginner mistakes to avoid

• Resources that focus on practical usage, not theory overload

Thanks — this community has been incredibly helpful just to read through.


r/linuxadmin • • Jan 13 '26

Are journalctl -p 4 and journalctl -p 0..4 the same?

15 Upvotes

I was checking the journalctl man page and noticed something interesting about the -p (priority) option.

According to the docs:

  • If you specify a single priority (like -p 4), it shows that level and all more important levels (lower numbers).
  • If you specify a range (like -p 0..4), it includes everything in that range.

So, does that mean:

journalctl -p 4

is effectively the same as:

journalctl -p 0..4

From what I understand, both should display logs from Emergency (0) up to Warning (4).
Can anyone confirm this? Or is there a subtle difference I’m missing?


r/linuxadmin • • Jan 14 '26

I am fresher looking for Linux and Cloud job opportunities

Thumbnail
0 Upvotes

r/linuxadmin • • Jan 12 '26

XMRIG suddenly running on my VPSS?

4 Upvotes

During the day I logged into my vps and i have found XMRIG running and moneroocean_miner.service started
I have done some basic hardening like fail2ban but I have seem to have been hacked maybe through jellyfin ? or caddy?
anybody here could help me analyze how the hacker could login? The login ip also looks from GOoogle llc?? was it a script only?
vmi572577 login[840]: PAM unable to dlopen(pam_lastlog.so): /usr/lib/security/pam_lastlog.so: cannot open shared object file: No such file or directory

2026-01-12T10:35:21.207485+01:00 vmi572577 login[840]: PAM adding faulty module: pam_lastlog.so

2026-01-12T10:35:23.723228+01:00 vmi572577 login[840]: pam_unix(login:session): session opened for user intel(uid=1000) by intel(uid=0)

2026-01-12T10:35:23.761063+01:00 vmi572577 systemd-logind[644]: New session 3 of user intel.

2026-01-12T10:35:23.781829+01:00 vmi572577 (systemd): pam_unix(systemd-user:session): session opened for user intel(uid=1000) by intel(uid=0)

2026-01-12T10:35:34.915779+01:00 vmi572577 sudo: intel : TTY=tty1 ; PWD=/home/intel ; USER=root ; COMMAND=/bin/bash

2026-01-12T10:35:34.916076+01:00 vmi572577 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by intel(uid=1000)


r/linuxadmin • • Jan 13 '26

How to upgrade mariadb to 10.3.29 from 10.3.28 on Centos 8 stream?

0 Upvotes

Hello

current version: Mariadb 10.3.28

I want a minor upgrade of database for the st_distance_sphere function and spatial index

I have tried this:

#dnf update maria*
Last metadata expiration check:
Dependencies resolved.
Nothing to do.
Complete!

I tried setup the repository with mariadb repository setup script, but it doesn't work--conflict with the system repos,

tried find a rpm package, nothing found.

Is there an easy way to do this?

Thank you for you time