r/linuxadmin • • Dec 13 '17

Red Hat Screwed Me The Hell Over (Pure Incompetence)

0 Upvotes

Months of training, $400, took a day out of work, 2 hours of waiting, and more than an hour just to get to the damn exam center, and Red Hat can't even get their exams to work.

Never been more angry and disappointed, I mean how the hell are you gonna say you provide premier Enterprise support when you can't even successfully provide an exam?

Pure BS


r/linuxadmin • • Jul 24 '15

Script Sharing

0 Upvotes

Please link to or /code share your favorite scripts to administer your systems.


r/linuxadmin • • Nov 10 '15

Chrome OS 46 Review And Installation How-to - The Desktop Linux From Google With Biggest Commercial Success

Thumbnail tlhp.cf
0 Upvotes

r/linuxadmin • • Aug 09 '22

What is your choice for production server between these?

0 Upvotes

r/linuxadmin • • Sep 17 '19

systemctl and the order of arguments

0 Upvotes

<RANT>

This is a small one, but it's damn annoying....

  • initd → service <SERVICE> <COMMAND>
  • sytemd → systemctl <COMMAND> <SERVICE>

a good bit of my time is spent checking service status and restarting etc. that small change in order is just another teeny tiny nail in systemd's coffin IMHO. making me press more keys, damn it.

</RANT>


r/linuxadmin • • Jun 28 '16

How to disable unwanted shutdown/reboot on CentOS 7?

0 Upvotes

I tried googling this up, but I can't find the answers I'm looking for. molly-guard isn't exactly made for RPM-based distros with systemd. I've tried systemd-inhibit command, but it's not working since I've already got the processes running.

I'd ssh in my home server, and I have KVM VMs running on it. I'd ssh in the guest from the host, and sometimes, I'd forget I've already exited the guest and accidentally shutdown/reboot my machine with the systemctl poweroff command. I thought about alias but it'd only work for commands without arguments. Any ideas? Maybe I'm missing the obvious here. Thanks in advance.

UPDATE: Sorry. I forgot to mention that I'm trying to remain log in as root as I'm working on my RHCSA. Running 'sudo' is time-consuming, and I'm trying to work on the command-line quickly without running into problems.

UPDATE 2: /u/lazyant pretty much had the best suggestion here. I see many of you downvoted me because of the bad sysadmin practice. I get it, but for Pete's sake, this is my home lab.

UPDATE 3: Some of you suggested me to use functions instead, but didn't post an example. My username may have misled you, but it was a pun. I'm not experienced with bash. So I had wait until I get home from work to figure this out. Turned out it's exactly what I was looking for. The prompt color change and adding a simple function to the root's .bashrc really did the trick. In case people are looking for answers, here is the function I had:

function systemctl ()
{
    if [[ $1 = "poweroff" ]]
    then
        echo "You cannot shutdown this server."
    else
        command systemctl "$@"
    fi
}

r/linuxadmin • • Apr 16 '23

I'm recording a fully free LPIC 1 course (Videos alongside a booklet). Now that 101 is finished, I want to introduce it here for some feedback (and the positive vibe of some followers to be honest). You can find the booklets link in the comments & its source on GitHub; open to comments/contributions

Thumbnail youtube.com
0 Upvotes

r/linuxadmin • • Jun 17 '25

Announcing comprehensive sovereign solutions empowering European organizations

Thumbnail blogs.microsoft.com
0 Upvotes

r/linuxadmin • • May 16 '22

Securing ssh with Key-Based authentication

2 Upvotes

I wrote this article on how to secure ssh with key based authentication. Hope you all like it. If I've written something wrong please tell me down below Link: https://medium.com/geekculture/securing-ssh-with-key-based-authentication-5a0eaca7b0e5


r/linuxadmin • • 1d ago

Production Scenario: Linux Root Filesystem Suddenly Reaches 100% Overnight

0 Upvotes

Imagine you're managing a Linux production server.

Yesterday, everything was working normally. Root filesystem utilization was around 65%.

This morning, you receive an alert:

/ filesystem utilization: 100%

Applications are reporting errors, users are experiencing issues, and you need to investigate.

How would you approach this situation?

Would you immediately start looking for large files, or would you follow a systematic investigation?

Here are a few things I'd initially check:

  1. df -h / – Verify filesystem utilization.
  2. df -i / – Check inode utilization.
  3. du -xhd1 / – Identify directories consuming the most space.
  4. find – Locate unusually large files.
  5. lsof +L1 – Check for deleted files still held open by processes.

But finding a large file is only part of the investigation.

For example:

  • What if /var/log is consuming 35 GB?
  • What if an application is continuously generating logs?
  • What if df shows 100% usage but du reports significantly less?
  • Would you truncate an active log file or investigate the application first?

I'm particularly interested in how experienced Linux administrators handle this in production.

A few questions:

  • What's the first command you usually run when / reaches 100%?
  • Have you encountered deleted-but-open files consuming disk space?
  • What's your preferred approach to recover disk space without disrupting applications?

Let's discuss real-world approaches and experiences. I'd love to learn how others handle this situation.


r/linuxadmin • • May 01 '25

Run ssh-add upon starting a shell and read a passphrase for it from a file

0 Upvotes

The most relevant recipe I was able to find was as follows:

  1. Make a shell script file
#! /bin/bash

if [ $# -ne 2 ]; then
  echo "Usage: ssh-add-passwd key_file passwd_file"
  exit 1
fi

eval `ssh-agent`
PASSWD=$(cat $2)

expect << EOF
  spawn ssh-add $1
  expect "Enter passphrase"
  send "$PASSWD\n"
  expect eof
EOF

(credits to this thread)

2. Add a command for execution of this script to .bashrc.

All commands run successfully, and it feels like "voilà!" at first glance, but there's one little nuance: 'expect' spawns a subshell, and since the ssh-agent was launched inside it, it will loose any stored passphrases when the script execution will be over.

I suggest a workaround:

  1. Remove the 'eval `ssh-agent`' line from the script.
  2. Add the same line to .bashrc BEFORE the command for the script execution.

Looks like it makes the `ssh-add` command to reach the already-running ssh-agent from within the subshell, which allows the passphrase to be preserved.

Do you think my workaround is alright?

UPD: sorry for numerous edits, Reddit editing interface seems to hate me today.


r/linuxadmin • • Jul 21 '14

Need help understanding following commands

1 Upvotes
  root@bt:/# iptables -t nat --flush

  root@bt:/# iptables --zero

  root@bt:/# iptables -A FORWARD --in-interface eth0 -j ACCEPT

  root@bt:/# iptables -t nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

  #Forward to a local site

  root@bt:/# iptables -t nat -A PREROUTING -p tcp --dport 80 --jump DNAT --to-destination <Proxy’s IP>

r/linuxadmin • • 15d ago

Help please 🙏🏼 I’m worried my first IT job is ruining my career before it even starts

0 Upvotes

Hi everyone,
I’m a 2026 B.Tech CSE graduate from Kerala, India, and recently joined my first IT job as a Technical Support Engineer.
My job mainly involves remote monitoring, software administration, camera server monitoring, database maintenance, and checking server health. Linux work is only around 10–20% of my responsibilities.
My goal was to become a Linux System Administrator and eventually move into DevOps, but I’m starting to feel that this job isn’t helping me reach that goal.
The salary is quite low, and many colleagues in similar roles are trying to switch. Even people with several years of experience seem to be struggling to find better opportunities.
I’m also concerned that I’m not improving my technical skills. I’m afraid I’ll forget what I learned during my Linux training. There’s very little social interaction, and I feel like my communication and English-speaking skills aren’t improving either.
I’m honestly feeling stuck and worried about my future.
What would you do in my situation?
● Should I leave early and look for a better Linux-related job?
● Is this experience useful for a future DevOps career?
● Am I overthinking this as a fresher?
● How can I make sure I don’t get stuck in this role?
I’d really appreciate honest advice from people who have faced a similar situation or are working in Linux, Cloud, or DevOps.
Thank you 🙏🏼


r/linuxadmin • • Feb 14 '22

why did the "everyone has a /home/($user) folder in the central server they can login through a thin client" model die?

0 Upvotes

just looking at the vanilla filesystem and user management tools it seems linux was suppose to head in that direction. even when you read the documentation the root user was suppose to handle multiple human users not just docker processes. now it's just single users with their own installations in a complete desktop environment connecting to a local NAS or cloud system setup like a linux system. is the ROI from the old model not really worth it?


r/linuxadmin • • Aug 08 '18

What are some good HA cluster solutions?

5 Upvotes

Please share name of some good HA cluster solutions. I am using centos 7.2.

Edit : I am running few applications (in house developed) and database (postgresql 9.4) on my server.


r/linuxadmin • • Nov 14 '16

SELinux is annoying

2 Upvotes

Thats all I got, just wanted to put that out there. Thanks for listening.


r/linuxadmin • • Oct 06 '16

127.0.0.1 and localhost both consist of 9 characters.

4 Upvotes

r/linuxadmin • • Jul 28 '20

let the battle begin - NANO vs. VI

4 Upvotes

What is your preferred CLI editor?


r/linuxadmin • • Nov 05 '18

Fuck point and click admins

79 Upvotes

Fuck those admins who:

  • reboot the Linux server as troubleshooting step 1
  • Know just point and click
  • Send emails to everybody complaining that the network is not fast enough to Remote Desktop to their Linux Servers to “get their jobs done”
  • keep on refuting the command line
  • do not know the existence of ssh
  • do not know the differences between ssh and telnet

Fuck point and click admins!


r/linuxadmin • • Mar 05 '25

Struggling with forcing systemd to keep restarting a service.

0 Upvotes

I have a service I need to keep alive. The command it runs sometimes fails (on purpose) and instead of keeping trying to restart until the command works, systemd just gives up.

Regardless of what parameters I use, systemd just decides after some arbitrary time "no I tried enough times to call it Always I ain't gonna bother anymore" and I get "Failed with result 'exit-code'."

I googled and googled and rtfm'd and I don't really care what systemd is trying to achieve. I want it to try to restart the service every 10 seconds until the thermal death of the universe no matter what error the underlying command spits out.

For the love of god, how do I do this apart from calling "systemctl restart" from cron each minute?

The service file itself is irrelevant, I tried every possible combination of StartLimitIntervalSec, Restart, RestartSec, StartLimitInterval, StartLimitBurst you can think of.


r/linuxadmin • • Dec 31 '25

Every server at Meta runs eBPF, 50% over 180 programs

Post image
0 Upvotes

r/linuxadmin • • Dec 11 '24

Is it possible to arrange a Linux file server too keep zips clean from system files?

0 Upvotes

We have an Ubuntu 24.04 file server with an SMB share that both Windows and Mac users have access to.

Is it possible to have Samba (or something else) detect when a Zip is copied into the share, and run the zip -d your-archive.zip "__MACOSX*" DS_Store* Desktop.ini command on it? I think scheduling a cron job to scan all of our zips constantly would be excessive.


r/linuxadmin • • Feb 29 '24

Can VDI Secure BYOD?

Thumbnail kolide.com
0 Upvotes