#SysadminTips

2026-01-21

really useful oneliner when a disk/ssd failed, got replaced, and now you need to copy the partition layout to a new disk:

sfdisk -d /dev/nvme0n1 | sfdisk /dev/nvme1n1

(yes my main server's secondary NVME disappeared randomly. I had it replaced, but since it's both the boot drive in a mdadm RAID1 (3 partitions), AND a ZFS ZIL + Cache, it has quite a specific layout)

#LinuxTips #Storage #SysadminTips

2025-12-24

TIL: the `timeout` command.

very useful if you e.g have a nightly backup script and want to make sure it doesn't spend more than a few hours trying to wrap files to avoid it getting stuck.

example: `timeout 5 watch uptime`

effect: watch will exit after 5 seconds, with a non-zero return value (124, which means 'timeout')

#LinuxTips #SysadminTips

Mike [SEC=OFFICIAL]mike@chinwag.org
2025-08-07
Disk usage graph showing 15.08TiB allocated out of a 22.01TiB capacity, which is apparently 69 percent.
nickbeardednickbearded
2025-06-07

Regret using BashCore Injector? Easy fix.

๐Ÿงผ Just open the script โ€” all installed packages are listed. Remove them with sudo apt remove, then run:

sudo apt autoremove
sudo rm -rf /opt/*

๐Ÿ’ก If something crashes mid-install, just delete the incomplete folder in /opt and rerun the script. It's smart โ€” it only installs what's missing.

No lock-in. No mess. Total control.

CyberGladius :verified:CyberGladius@cybergladius.social
2025-05-23

๐Ÿ› ๏ธ WordPress Admins using AI-generated PNGs from ChatGPT: be aware!

ImageMagick on the backend often chokes when resizing these PNGs, breaking thumbnails or uploads.

โœ… Quick fix: open the PNG, re-save it as a JPEG, then upload.

Avoid the headache. Share if this saved you. #WordPress #AI #ImageMagick #SysAdminTips

Mike [SEC=OFFICIAL]mike@chinwag.org
2024-07-02

alias please='sudo $(history -p \!\!)'

#sysadmin #sysadminTips

2023-10-27

As a rule, you DON'T deploy to production on Fridays.
But here's the catch: if you hasten through deployment on Thursday evening so you can do it BEFORE Friday, that's NOT necessarily much better.
#nonmention #sysadmintips

๐Ÿ›ก H3lium@infosec.exchange/:~# :blinking_cursor:โ€‹H3liumb0y@infosec.exchange
2023-07-21

Found a guide for NetScaler (Citrix ADC) CVE-2023-3519 that explains how to validate and check for (currently) known Indicators of Compromise (IoCs) on a local CITRIX device.

The full guide including the commands, can be found here: [Checklist for Citrix ADC CVE-2023-3519](deyda.net/index.php/en/2023/07)

Please bear in mind that this is a guide "found on the internet". Although it appears to be reliable and it was mentioned by SANS stormcast, these devices are not my specific area of expertise. Use your brain and use at your own risk...

Here are some key points from the article:

1. **Log in with nsroot or another administrative account.**

2. **Find out the time of the last update.** - This command lists the details of the files in the /var/nsinstall directory, which can help determine when the last update occurred.
```
shell ls -ll /var/nsinstall
```

3. **Check whether certain files have been adjusted since the last update.** - These commands find and list files in specified directories that have been modified since the last update.
```
shell
find /netscaler/ns_gui/ -type f -name *.php -newermt {Timestamp of Installer Files +1} -exec ls -l {} \;
find /var/vpn/ -type f -newermt {Timestamp of Installer Files +1} -exec ls -l {} \;
find /var/netscaler/logon/ -type f -newermt {Timestamp of Installer Files +1} -exec ls -l {} \;
find /var/python/ -type f -newermt {Timestamp of Installer Files +1} -exec ls -l {} \;
```

4. **Check for HTTP error log files.** - These commands search for .sh and .php entries in the HTTP error log files.
```
zgrep '\.sh' /var/log/httperror.log*
zgrep '\.php' /var/log/httperror.log*
```

5. **Check for Shell log files.** - This command searches for entries related to '/flash/nsconfig/keys' in the shell log files.
```
grep '/flash/nsconfig/keys' /var/log/sh.log*
```

6. **Check log files for known IOCs.** - This command finds and lists files with root permissions that have been modified since the last update.
```
find /var -perm -4000 -user root -not -path "/var/nslog/*" -newermt {Timestamp of Installer Files +1} -exec ls -l {} \;
```

7. **Check for Nobody processes.** - This command lists processes running under the 'nobody' user that are not associated with '/bin/httpd'.
```
shell ps aux | grep nobody | grep -v '/bin/httpd'
```


#NetScaler #CitrixADC #CVE20233519 #SecurityGuide #IndicatorsOfCompromise #IoCs #InfoSec #CyberSecurity #VulnerabilityManagement #SecurityInvestigation #SysAdminTips #NetworkSecurity #CyberThreats #ITSecurity #OnlineSecurity #CyberAware #TechSafety #SecureNetworking #VulnerabilityScanning #InfoSecAwareness

CICD pipelines with tools like Github Actions are great for use cases where certain collaboration and complexity require that ecosystem; but I've really come to appreciate simple automated deploy setups with git hooks and basic bash scripts.

Scenario: setup a remote repo via ssh access, add a post-receive hook that triggers a deploy script that pulls latest code and restarts a system service...

No external dependencies, high level of security, quick to get running, elegant in its simplicity. For side projects I've found this to be an extremely satisfying automated process that takes a push to main and translates that into a production deploy. Very convenient. #Sysadmin #SysadminTips #automation #programming #DevOps #git

2019-04-30

Yop, des gens utilisent #CodiMD sur leur serveur (avec #yunohost ou pas ) ?

Je suis preneur de REX avant de tenter l'install chez moi ๐Ÿ˜„

forum.yunohost.org/t/experienc

#SysAdminTips

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst