Bash script for managing htaccess files

Had to create this for a less technical user to manage htaccess, so thought I'd share. Your mileage may vary. Change the location of the default htpass file in the config. You can supply another location in mid script if you have more than one. #!/bin/bash# ConfigurationHTACCESS_FILE_DEFAULT="htpass_test"# Function to display a list of usersdisplay_users() { … Read more

systemctl journals filling up your disk

Quick one … your system probably uses logrotate to keep a fixed number of logs, and which stops your disk filling up. Trouble is, that systemctl doesn't write logs in the normal way so you can't rely on logrotate any more. Check out your current systemctl log usage with journalctl –disk-usage Wait, whaaaat? Its using … Read more