Prevent GIT folder access in Nginx
To prevent any data leaks I have adjusted the Nginx configuration so that by default it will not serve files inside the .git folders. Steps
Home » Linux
To prevent any data leaks I have adjusted the Nginx configuration so that by default it will not serve files inside the .git folders. Steps
Assume you we have a physicial volume called vg0 and we want to add an additional LVM volume that consists of the total available space.
Nothing is more annoying than when you open Midnight Commander (mc), browse through a couple of directories and exit mc that the shell does not
Remove authorized keys rm -f /root/.ssh/authorized_keys Generate new RSA key ssh-keygen -t rsa -b 4096 Remove existing host keys rm -rfv /etc/ssh/*key* Automatically regenerate host
After I updated Debian Stretch (9) to Debian Buster (10) I noticed that the locales without ending UTF8 extension we’re no longer provided. Instead of
To do a safe update run: aptitude update aptitude safe-upgrade To upgrade from one release to another run: aptitude update aptitude full-upgrade
To stop and disable the Amavis service run the following command: systemctl stop ‘amavisd.service’; systemctl disable ‘amavisd.service’;
To stop the service run: systemctl stop ‘clamd@amavisd’ To disable the service run: systemctl disable ‘clamd@amavisd’ To stop and disable the Clamd service run the
To get SysV services run: chkconfig –list This will print the following to the screen: Note: This output shows SysV services only and does not
Update Kernel with Yum yum -y update kernel Run the following command to also keep OpenSSL, Apache and Systemd up-to-date yum -y update httpd nss