How to restrict s3 readable only from certain IP addresses or CloudFlare Only

In many scenarios, it becomes crucial to control and limit access to your S3 bucket to specific IP addresses. Recently, we encountered a situation where we needed to grant access exclusively to CloudFlare IPs. To address this requirement, we implemented a solution by incorporating conditions into our S3 bucket policy. This approach allows for fine-grained …

How to restrict s3 readable only from certain IP addresses or CloudFlare Only Read More »

Failed to create temporary file: /var/lib/mod_security/20xx

Today, the developer reported that the he is not able to upload some files. As we checked, we were getting the following error on mod_security log. It looks like apache is getting denied while writing in to /var/lib/mod_security/ location. As a quick fix, we have modified the mod_security.conf configuration file located at /etc/httpd/conf.d/mod_security.conf Once modified, …

Failed to create temporary file: /var/lib/mod_security/20xx Read More »

How to create a new sudo / super admin / wheel user in AlmaLinux CentOS Ubuntu

The “wheel” user has special privileges that allow it to perform administrative tasks on the system. To create a wheel user, follow these steps: That’s it! You’ve successfully created a new wheel user in AlmaLinux 8. To log in to the new account, simply type the username and password you set in step 3 at …

How to create a new sudo / super admin / wheel user in AlmaLinux CentOS Ubuntu Read More »

How to install node.js on User Level – CentOS RHEL Amazon Linux

This article explains how you can install node package on user-level without having root access. This method was tested on CentOS 7 and Amazon Linux 2. However, this method should work on any Linux version. Please comment below if you are facing any issues. Create a user for your node application. In our case and …

How to install node.js on User Level – CentOS RHEL Amazon Linux Read More »

CentOS 6 – YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

Hello folks… Today I was trying to install a package on an old CentOS 6 server and got the below error. Loaded plugins: fastestmirror, presto, security Setting up Install Process Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: …

CentOS 6 – YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Read More »

Scroll to Top