Tag: sysadmin

Practical systemctl Basics: Manage systemd Services Safely

Practical systemctl Basics: Manage systemd Services Safely

When `systemctl` Confuses You (And When It Won’t Work At All) A super common mistake: assuming every Linux server uses systemd and blindly copy-pasting systemctl commands from some blog. If your terminal answers with something like: bash: systemctl: command not found or systemctl: command not found there’s a good chance your distro isn’t using systemd at all. In that case,…

Read More »

Forward Ports Through a Linux Gateway with iptables NAT

Why Your Port Forwarding Isn’t Working A very common mistake with port forwarding on Linux is assuming a single DNAT rule is enough. You add one iptables rule, try to hit your server from outside, and… nothing. In reality, proper forwarding through a Linux gateway needs three things working together: IP forwarding in the kernel, packet filtering rules in the…

Read More »
How to Edit the sudoers File Safely with visudo

How to Edit the sudoers File Safely with visudo

If you break your sudoers file, you can lock yourself out of root. That’s the nightmare we’re trying to avoid here. This guide is for anyone managing Linux servers (VPS, bare metal, cloud instances) who needs to give or adjust sudo access without shooting their future self in the foot. I’ll walk you through how to use visudo correctly, how…

Read More »