Automatically generating .htaccess in my web server and limit my access

I’m having a problem. A .htaccess file is automatically generated in a folder in my web server(linux) and prohibiting me accessing that folder. The content inside that .htaccess file is “deny from all”. I tried to set the permission of that folder at “0755”. No luck yet. After few days, I see the file is generating again inside.
Any one have any idea to get rid of this issue?

Thanks in advance.

Are you using a CMS?

Hi, Im using a custom made PHP CMS.

I just thought the CMS could be inserting the .htaccess file.

No, I made that CMS. There is no option to create automatic .htacess file.