FIXED – SoftException in Application.cpp:631: Directory “/home/ajay/public_html” is writeable by group

Cpanel Error: [Sun Feb 01 20:41:30.060061 2015] [:error] [pid 401503:tid 140542316816128] [client xx.xx.xx.xx:44688] SoftException in Application.cpp:631: Directory “/home/ajay/public_html” is writeable by group

In this case the folder had permissions for a folder set too high. To correct this, the permissions need to be changed from “777” to “755”.

Directories and folders should be 755. Executable scripts within the cgi-bin folder must be 755. Images, media, and text files like HTML should be 644.

Files – 644
CGI Scripts – 755
Directories – 755

You can modify permissions with the File Manager, located in the “Files” category of the cPanel, an FTP client, or using the chmod command in SSH/Bash.
Bad .htaccess, Invalid code, command, or syntax

In the .htaccess file (“dot htaccess”), you may have added lines that are either worded badly or conflicting. The best way to troubleshoot this is comment out the lines in the .htaccess.

You can comment out a line in the .htaccess by adding # to the beginning. You are wise to save an original copy of any file before you make changes.

For example, if the .htaccess looks like this:
DirectoryIndex default.html
AddType application/x-httpd-php5 php

Then try something like this:
DirectoryIndex default.html
#AddType application/x-httpd-php5 php

 

Enable SSH (Secure Shell) in Elementary Luna / Ubuntu

installl ssh

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. or open your  gnome-Terminal  (If installed)

When it opens, run the commands below to install SSH Server.

 

sudo apt-get install openssh-server

That's it! , if you need to change default port and stuff , edit the below file

sudo vi /etc/ssh/sshd_config

or

sudo gedit /etc/ssh/sshd_config

For a simple and quick SSH client, click here to download Putty.

Change HostName Permanently – Ubuntu

We can manually edit these files using a text editor like vim:

sudo vim /etc/hosts
sudo vim /etc/hostname

In /etc/hostname simply overwrite the existing hostname with a new one. In /etc/hosts

you will find the hostname on the line beginning 127.0.0.1 – overwrite only the hostname with the new one, and then reboot.

Editing /etc/hosts using nano

 

Mind hacking part #1 – Human curiosity

The curiosity about one’s self and the environment leads a person to investigate and with the help of his findings draw adequate inferences. It guides him to attain his desires and goals in life, to create a vision and to dream. It is that quintessential quality in man that makes him superior to other creations in terms of sociability, morality and intellectuality. This is something which enables him to build communities and develop societies.

But sometimes This nature can be taken for advantage.

In IT Industry a hacker can exploit human curiosity.  They are called Social engineering ( is the art of manipulating users of a computing system into revealing confidential information that can be used to gain un-authorized access).

Using this technique of exploiting curiosity, the social engineer may deliberately drop a virus / malware infected flash disk in an area where the users can easily pick it up. The user will most likely plug the flash disk into the computer. The flash disk may auto run the virus.

The Hacker may drop a flash disk with a file , the user may be tempted to open the file with a name such as Employees Salary Report 2014.docx which may actually be an infected file.

 

Deny IP Range in .htaccess file

Most of the time you need to block the whole range of IPs using .htaccess file and i recently noticed below code not working.

<Files ajay.php>
order deny,allow
deny from all
allow from 192.168.0.0/24
</Files>

After couple of searches i found the /24 doesn’t work here and you need to make the subnet mask as 255.255.255.0

 

to allow single IP is easy as below

<Files register.php>
order allow,deny
allow from 192.168.19.24
deny from all
</Files>

<Files search.php>
order deny,allow
deny from all
allow from 192.168.0.0/255.255.0.0
</Files>

 

in Linux life small changes make a big difference 🙂

 

WP Twitter Auto Publish Powered By : XYZScripts.com