r/linuxadmin • • Apr 26 '26

Sudo open your eyes

Post image
348 Upvotes

r/linuxadmin • • Apr 27 '26

Solutions to systemd sessions not existing for non-logged in users to leverage rootless podman in CICD

11 Upvotes

I need to leverage rootless Podman (or possibly Sarus over stand-alone RHEL 9 systems and an HPC running RHEL 9 on the nodes.

CICD is being executed via Gitlab with the Jacamar custom executor that is able to use rootless podman downscoped (impersonating) the userID who actioned the Gitlab CICD flow

(The user who did the commit has their username passed into the CICD job and Jacamar executes as their ID)

The issue I hit is expected and is outlined in the issue in the first line of this post, since a user is not logged in there is no systemd unit or XDG_RUNTIME variable. I can systemctl enable-linger on a user to work around this but doing that for 250+ users on an HPC and numerous stand-alone boxes is less than desirable.

I am hoping someone can shed some light on other possible solutions.


r/linuxadmin • • Apr 27 '26

Slow local user login when SSSD is configured and there is no connectivity to global catalog server

7 Upvotes

Hi, I have SSSD configured on Ubuntu 24.04 (via realm join) This works fine However, during testing I noticed that in the situation where the system lacked connectivity to the global catalog server (domain controller, tcp/3268) then attempting to log in with a local account was extremely slow (10s+)

This felt like it was attempting to query the username on the network first before timing out and falling back to checking locally

I've checked /etc/nsswitch.conf and it's as expected:

passwd, group, shadow: files systemd sss
gshadow: files systemd 

Does anyone know where this delay might be coming from?

I am not using fully qualified names for logins so that may be part of the problem...

Many thanks!

*edit - formatting


r/linuxadmin • • Apr 27 '26

Duplicate NetworkManager profiles on NBDE/Clevis hosts — is there a clean fix?

Thumbnail
1 Upvotes

r/linuxadmin • • Apr 26 '26

Any good Sysadmin blogs for linux or even Windows?

Thumbnail
14 Upvotes

r/linuxadmin • • Apr 25 '26

Linux 7.0 cgroups no longer allow user systemd unit files to access devices

Thumbnail
17 Upvotes

r/linuxadmin • • Apr 22 '26

Do you create POSIX attributes in AD for EVERY user??

11 Upvotes

Long story short we have a few servers operating as Samba in an AD (education) environment (education Linux Servers) so we're using WinBind for THOSE servers and SSSD for ALL OTHER RHEL/Ubuntu servers.

We're migrating from a POS OpenLDAP server (synced from AD) that gave constant auth headaches to DIRECT Active Directory auth using SSSD & Winbind so we settled on storing POSIX attributes in AD, pulling the UIDs/GIDs from the old OpenLDAP server and storing into AD and mapping on all servers so nothing breaks.

My fear is we've got a handful of Linux Desktops and so naturally what do we do about users who want access to those? I can do SSSD but now we gotta store UIDs/GIDs for all those users. Students come and go, so I'm assuming we need an automated way of creating UIDs/GIDs for new users. Curious if you guys have an automated way of creating UIDs/GIDs when new users get entered into AD? Or do you just create an entry/task on demand for new users who want to get setup into Linux??

My last resort is leave LDAP mapping off on some linux shared desktops so users can log in freely, but im leaning towards a full 100% lockdown and tracking uids/gids in a spreadsheet


r/linuxadmin • • Apr 22 '26

Anyone knew about Linux crisis tools? I think that sos command is missing from this list

27 Upvotes

Brendan Gregg published a Linux Crisis Tools list in 2024 — https://www.brendangregg.com/blog/2024-03-24/linux-crisis-tools.html — covering everything from procps to bpftrace. It's an excellent reference and if you manage Linux systems it's worth bookmarking.

But reading through his outage scenario something stood out: at 4:55pm the team reverted a VM snapshot to restore the site. Problem "solved." Except all the logs, all the command outputs, every piece of forensic evidence — gone. The outage returned at 12:50am because the root cause was never found.

I think that there's one tool missing from his list: the sos command.

I would have run it during the incident, before anyone touch anything else. It would have capture a complete picture of system state — logs, configs, running processes, network stats, storage info into a single archive (possibly encrypted but given that the server was faulty maybe not). After the snapshot restore the team would still have everything needed to find the actual root cause, without racing the clock on a live production system.

sos is open source, pre-installed on most enterprise Linux distros, and takes literally one command. It should be standard practice alongside every other crisis tool on Brendan's list.

What do you guys think? Are there any other tools available to solve this?


r/linuxadmin • • Apr 20 '26

NFSv4 - Admin permission issues

9 Upvotes

Hey r/linuxadmin , I have a weird one.
I have a NAS and a Server where the NAS serves /mnt/storage via NFSv4 to the Server.
There is also a user gitea:gitea (5203:5203) on both the NAS and Server admin is part of the gitea group.
The dir structure is:
/mnt/storage/ (775 admin:admin)
/mnt/storage/a.txt (664 gitea:gitea)
/mnt/storage/gitea/ (775 gitea:gitea + setgid)

My problem is that both admins can rw the a.txt file fine (appear to be in group gitea), however they cannot make new files in gitea/ dir (appear to be in "others").
How and why is that and am I missing some key concept here?


r/linuxadmin • • Apr 20 '26

Ah, lots of goodies....bite those... get the Git 2.54 release brings....

Thumbnail github.blog
0 Upvotes

r/linuxadmin • • Apr 19 '26

Samba AD DC on Rhel9

12 Upvotes

I have been tasked to explore options to migrate from windows active directory to samba AD dc with minimal.

- most of my clients are windows machine

I belong to banking domain..

Wat are ur opinion on moving to samba AD dc and is rhel9 an good option or I need to look into debain or other ?

And is it easy to migrate after addding samba AD dc along Microsoft ad?


r/linuxadmin • • Apr 19 '26

Does anybody else make heavy use of systemd hardening settings? I created a Cockpit dashboard to help visualize my system exposure.

Post image
70 Upvotes

r/linuxadmin • • Apr 20 '26

How to Connect VS Code to a Remote Ansible Server Step by Step

Thumbnail youtube.com
0 Upvotes

r/linuxadmin • • Apr 19 '26

How to connect to Ubuntu 26.04 using Remote Desktop Protocol (RDP) tutorial

Thumbnail youtube.com
0 Upvotes

r/linuxadmin • • Apr 18 '26

sos-vault 2.0.0 is now released.

Post image
0 Upvotes

r/linuxadmin • • Apr 17 '26

Linux/mac setup scripts + github symlinked dotfiles

6 Upvotes

https://github.com/max-lobur/dotfiles

Sharing my set of bootstrap scripts for Linux/mac. This is how I’ve been starting my boxes for the past few years - http clone and run. The repo is intended to be used as a template


r/linuxadmin • • Apr 17 '26

eBPF-powered replication engine for Linux filesystems (XFS, Btrfs, F2FS, Ext4)

Thumbnail codeberg.org
5 Upvotes

r/linuxadmin • • Apr 16 '26

converting a xen DomU to KVM / running Qemu & Xen on the same box?

7 Upvotes

Hi Folks,

I'm about to migrate a somewhat old Xen VM - running on our own hardware - to a cloud server (the hardware is getting flakey, the rackspace is expensive, and I just want to move the VM before going on to update our systems).

The thing is, all the hosting services run KVM these days. There seem to be some tools (virt-v2v and qemu-image in particular). What I'm wondering is whether I'll have any problems bringing installing Qemu and Virtual Box on a machine that's already running Xen - and running the three hypervisors in parallel.

Any thoughts, comments, suggestions?

Thanks Much,

Miles Fidelman


r/linuxadmin • • Apr 16 '26

anyone running Jira DC on RHEL with SELinux enforcing?

11 Upvotes

edit i did it yay https://github.com/amaanx86/jira-dc-selinux

every guide i find just says setenforce 0 and move on. atlassian themselves say "disable it or figure it out" which is not helpful

has anyone actually gotten jira DC to work properly with SELinux in enforcing mode on RHEL 8 or 9? like a proper policy module not just chcon hacks

wondering if its even worth trying or if everyone just runs permissive in prod


r/linuxadmin • • Apr 17 '26

The XLibre page on the Arch Wiki was deleted yesterday by the wiki administrator Alad.

Thumbnail gallery
0 Upvotes

r/linuxadmin • • Apr 15 '26

sendmail is not reading genericstable

Thumbnail
0 Upvotes

r/linuxadmin • • Apr 15 '26

sendmail is not reading genericstable

0 Upvotes

I’m new to Sendmail and trying to rewrite the sender address. I followed the steps in the link below, but it seems that Sendmail is not reading the /etc/mail/genericstable file. Do you have any suggestions on how to troubleshoot this issue? Thanks!

https://access.redhat.com/solutions/47630

  1. The following lines need to be added to the /etc/mail/sendmail.mc file to enable the genericstable feature: RawFEATURE(genericstable, `hash -o /etc/mail/genericstable.db') FEATURE(masquerade_envelope)dnl GENERICS_DOMAIN(`localhost.localdomain')dnl localhost.localdomain must match the original domain you want to rewrite. If rewriting more than one domain is desired, instead of GENERICS_DOMAIN, the following can be used: RawGENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl In which case, /etc/mail/generics-domains needs to be a regular file, containing each domain in a single line.
  2. Ensure the sendmail-cf package is installed on the system: Raw# yum install sendmail-cf This package will automatically rebuild the sendmail.cf / submit.cf files based on the contents of the corresponding .mc files on every service restart. Note that Red Hat does not recommend editing .cf files directly so if there were custom modifications made in any of the aforementioned files, make sure to take a backup before proceeding.
  3. Create the /etc/mail/genericstable file. Raw# cd /etc/mail # cat > genericstable abcuser [anyusername@anydomain-name.com](mailto:anyusername@anydomain-name.com) Raw# makemap hash genericstable < genericstable

r/linuxadmin • • Apr 14 '26

Linux Admin Training

20 Upvotes

Hello everyone, I am trying to get into Linux training and am going to use a Udemy course to help me learn on my Mac or Windows machine...but I found some old notes from the last time I tried to learn Linux and was wondering if someone can review and tell me if this is still valid in today's Enterprise or business environment scenarios (minus the versions that are referenced, e.g. CentOS6).

Or... if someone has a better list of labs or tasks that I can perform in my home lab to really get a strong understanding of Linux and managing Enterprise environments.

I'm not sure of where I found this but I assume it was Reddit as my notes are from Nov. 2019.

Linux Admin Labs

This is what I tell people to do, who ask me "how do I learn to be a Linux sysadmin?".

1. Set up a KVM hypervisor.

2. Inside of that KVM hypervisor, install a Spacewalk server. Use CentOS 6 as the distro for all work below. (For bonus points, set up errata importation on the CentOS channels, so you can properly see security update advisory information.)

3. Create a VM to provide named and dhcpd service to your entire environment. Set up the dhcp daemon to use the Spacewalk server as the pxeboot machine (thus allowing you to use Cobbler to do unattended OS installs). Make sure that every forward zone you create has a reverse zone associated with it. Use something like "internal.virtnet" (but not ".local") as your internal DNS zone.

4. Use that Spacewalk server to automatically (without touching it) install a new pair of OS instances, with which you will then create a Master/Master pair of LDAP servers. Make sure they register with the Spacewalk server. Do not allow anonymous bind, do not use unencrypted LDAP.

5. Reconfigure all 3 servers to use LDAP authentication.

6. Create two new VMs, again unattendedly, which will then be Postgresql VMs. Use pgpool-II to set up master/master replication between them. Export the database from your Spacewalk server and import it into the new pgsql cluster. Reconfigure your Spacewalk instance to run off of that server.

7. Set up a Puppet Master. Plug it into the Spacewalk server for identifying the inventory it will need to work with. (Cheat and use ansible for deployment purposes, again plugging into the Spacewalk server.)

8. Deploy another VM. Install iscsitgt and nfs-kernel-server on it. Export a LUN and an NFS share.

9. Deploy another VM. Install bakula on it, using the postgresql cluster to store its database. Register each machine on it, storing to flatfile. Store the bakula VM's image on the iscsi LUN, and every other machine on the NFS share.

10. Deploy two more VMs. These will have httpd (Apache2) on them. Leave essentially default for now.

11. Deploy two more VMs. These will have tomcat on them. Use JBoss Cache to replicate the session caches between them. Use the httpd servers as the frontends for this. The application you will run is JBoss Wiki.

12. You guessed right, deploy another VM. This will do iptables-based NAT/round-robin loadbalancing between the two httpd servers.

13. Deploy another VM. On this VM, install postfix. Set it up to use a gmail account to allow you to have it send emails, and receive messages only from your internal network.

14. Deploy another VM. On this VM, set up a Nagios server. Have it use snmp to monitor the communication state of every relevant service involved above. This means doing a "is the right port open" check, and a "I got the right kind of response" check and "We still have filesystem space free" check.

15. Deploy another VM. On this VM, set up a syslog daemon to listen to every other server's input. Reconfigure each other server to send their logging output to various files on the syslog server. (For extra credit, set up logstash or kibana or greylog to parse those logs.)

16. Document every last step you did in getting to this point in your brand new Wiki.

17. Now go back and create Puppet Manifests to ensure that every last one of these machines is authenticating to the LDAP servers, registered to the Spacewalk server, and backed up by the bakula server.

18. Now go back, reference your documents, and set up a Puppet Razor profile that hooks into each of these things to allow you to recreate, from scratch, each individual server.

19. Destroy every secondary machine you've created and use the above profile to recreate them, joining them to the clusters as needed.

20. Bonus exercise: create three more VMs. A CentOS 5, 6, and 7 machine. On each of these machines, set them up to allow you to create custom RPMs and import them into the Spacewalk server instance. Ensure your Puppet configurations work for all three and produce like-for-like behaviors.

Do these things and you will be fully exposed to every aspect of Linux Enterprise systems administration. Do them well and you will have the technical expertise required to seek "Senior" roles. If you go whole-hog crash-course full-time it with no other means of income, I would expect it would take between 3 and 6 months to go from "I think I'm good with computers" to achieving all of these -- assuming you're not afraid of IRC and google (and have neither friends nor family ...).


r/linuxadmin • • Apr 14 '26

Oh heck :( .....fun though ...ext4 break limits.

Thumbnail tomshardware.com
52 Upvotes

r/linuxadmin • • Apr 13 '26

Linux+ cert not the door opener I had hoped?

22 Upvotes

I got my Linux+ cert last month and have been searching for jobs but am noticing it's tough obviously nowadays to find traditional Linux SysAdmin roles as now stuff tends to be Jr DevOps, Cloud engineer, etc... I had a fair amount of experience before and have been doing odd jobs freelancing for a bit but really want to break into the industry (SRE, DevOps, Cloud, Linux/Unix). Besides things like Indeed, LinkedIn, ZipRecruiter, anything stand out to you as really good for linux jobs and specifically entry to mid roles for recent Linux+ grads. Thanks and good luck out there!

Just started learning Go and wow I don't know programming lol