Automaticaly Deletion of Drupal Project Files and Folder

sumit_drupal's picture

I am facing a very serious problem in my drupal site.The problem is that, when i entered wrong username or wrong password at the time login than automatically all project files and folders including drupal installed files and folder get deleted automatically.
I have given Read,write and execute permission for files and folder to only owner user.

Even though when i setup my drupal site in my local machine and tried to login using wrong credentials than again I have lost all project files and folders.
I could not found any solution.Please help on this.

Any kind of help would be appreciated.
Thanks in advance.

Comments

Dear Sumit, Please check the

asifnoor's picture

Dear Sumit,

Please check the permissions on your drupal installation directory. Basically user login is related to application and i assume this is some part of your custom code which could be doing this.

In order to verify, please disable your custom modules and check it. If it does not solve, then i suggest to have a clean core drupal installation and put your sites directory in it and check it once. There could be chance that your core drupal might have been hacked.

Thanks,
Asif

Keep on deleting

sumit_drupal's picture

Thanks Asif, But my project files and folders keep on deleting even after disabling the custom modules.I have done with the fresh Drupal installation but files keep on deleting.
Please give me some advice on this.

When you refer to files, are

asifnoor's picture

When you refer to files, are you referring to user uploaded files directory or the complete drupal installation directory which is /var/www/html/drupal6?

The complete installation

sumit_drupal's picture

The complete installation directory that is "/var/www/html/drupal6" .
Actually i have installed Drupal 6 in my local system and import my project existing contributed modules and themes to local installed Drupal and configure the site locally accordingly.

Check for these:

y.anvesh's picture

Are there any actions or triggers created?

Check for proper permissions to files.

If those doesn't work, then disable the contributed modules too and then try. Try disabling Login related modules first, such as logintoboggan. You ll get to know which module is creating the problem.

--
Anvesh.Y

Thanks for the reply,I have

sumit_drupal's picture

Thanks for the reply,I have disabled the contributed modules related to login module but no luck, again all files and folders got deleted after login.One thing i noticed when i logged in the site using this "user/login" and entering correct username and password than also files are getting deleted, one folder automatically created inside project location named "userid" of last loggedin user.

use a debugger might give you solution

prashantgoel's picture

I would suggest you debug after the login so that you can easily come to know what code is just deleting your files