PuTTy is a user-friendly SSH client for the Windows system. Most of the Linux system users are aware and use to connect remote system running SSH server. It also provides you option to create SSH tunnel to provide access to resource within the trusted internal network. With the help of SSH tunnel you can access […]
Netcat : The swiss Army knife You must have
Netcat (also known as ‘nc’) is a networking tool used for reading or writing from TCP and UDP sockets using an easy interface. It is designed as a dependable ‘back-end’ device that can be used directly or easily driven by other programs and scripts. Therefore, this tool is a treat to network administrators, programmers, and […]
Enable or Disable remote desktop on linux gnome
I found this somewhere online and found it very useful. If you ever need to enable or disable remote desktop via a remote connection like ssh here’s how to do it below. This is useful if you do not have physical access to a machine which is very common. To enable remote desktop use this […]
Enable fopen only for a specific cPanel or linux user with suPHP
For security reasons most hosts will have fopen disabled. This is for security reasons but there are also times when it is legitimately needed. Below I will show you how to enable fopen for a single cPanel user instead of server wide. This may be the error you get: Warning: fopen(): URL file-access is disabled […]
How to keep cPanel httpd.conf settings from being reset or removed
Have you made a change to the /usr/local/apache/conf/httpd.conf file and it’s not sticking? This is because you are not supposed to edit that file directly on a cPanel server! Many linux guru’s have made this mistake just because they are not used to cPanel! When you need to edit the httpd.conf file or settings for […]
Clear Log or any file without removing or deleting it and retaining permissions
There are many other ways to do this, but an easy way to remember is this command: cat /dev/null > /the/path/to/file.sh Source: sMyles advertisement: sMyl.es
How to change cPanel theme for specific user
All cPanel account information for each specific account is stored in the /var/cpanel/users/USERNAME If you need to change the specific theme for a certain user this is the file you need to edit, and the value you need to edit is described below: vi /var/cpanel/users/myuser BWLIMIT=unlimited DEMO=0 DNS=domainname.com FEATURELIST=default HASCGI=1 IP=IPHERE LANG=english LOCALE=en MAXADDON=0 MAXFTP=0 […]
How to check inode usage on linux for a specific cpanel user account or directory
If you’re a linux system administrator you’re probably already familiar with the term “inode”. For those of you who are not, an inode is basically a way to measure the amount of files a user has. This includes every email, cache file, image, and so on. If it has a filename it is considered an […]
Using SCP to copy a file on a non standard ssh port
Frequently system administrators will change the SSH port from the standard port 22 for security reasons. If this is the case and you need to transfer something via SCP, below is the command to transfer a file from one server to another using a non standard SSH port. Transfer a file with SCP on port […]
Linux Bash Script to Patch WHMCS 5.1 Google Checkout Security Vulnerability
Yesterday WHMCS released an announcement that there was a security vulnerability with the Google Checkout module in the 5.0 – 5.1.2 versions of WHMCS. This vulnerability can permit a malicious user to inject SQL via the Google Checkout module. As we like to take a proactive approach and protect our clients as much as possible, […]