Due to ownership inconsistencies caused by creating a folder with PHP, I can no longer delete the fo

Due to ownership inconsistencies caused by creating a folder with PHP, I can no longer delete the folder using the file manager.

Please delete this folder/files:

  • Website: yamaki3970.f5.si (formerly yamaki3970.free.nf)

  • Folder 1: /htdocs/undertaleau-main/

  • Folder 2: /htdocs/I don’t need it/

P.S. I am Japanese, so if possible, I would appreciate a response in Japanese. If not, simple English is fine.

I checked the directory permissions and I don’t see anything unusual about it. What exactly do you suppose is wrong with the permissions and what’s stopping you from deleting them yourself?

6 Likes

Thank you for checking the permissions. I believe the issue is not with the permissions (CHMOD) code itself, but with the ownership of the directory.

The folder was created by a PHP script, which runs as the web server user. In this hosting environment, the FTP user (my account) does not have the necessary ownership rights to delete directories owned by the web server user, even if the permissions appear correct.

This is a known issue caused by ownership inconsistencies in shared hosting. Only the server’s root user or administrator can delete these folders.

Therefore, I kindly request you to perform the deletion from the server side. Thank you for your understanding.

If it’s your account you should have permission to delete it regardless of whether it was created manually by you, or by a script. What’s the actual error message you get when you try to delete it?

3 Likes

But if the permissions are correct then you can still delete the directory.

Can you share the error you get when trying to delete the directory?

3 Likes

Yes, when I try to delete a directory using the file manager I get the following error:

Failed to delete I don’t need it

Can you try deleting it through an FTP client like FileZilla to make sure it’s not a file manager bug

4 Likes

I’m sorry, but I’m using an iPad, so I can’t install FileZilla. I don’t want to install any other software.

I was able to delete it using InfinityFree Filestash!! Thank you for your cooperation.

2 Likes

Our server has suExec which means that PHP runs as your user, not webserver user.

5 Likes

Haha was just looking for the link for that to suggest it to you.

That strongly suggests it was a file manager glitch not a permissions problem

4 Likes

Please be aware that PHP code is executed under your own account username. So any files created from PHP are owned by your user, just like the files you uploaded yourself.


I’m glad you were able to delete the files successfully. I’m guessing that the specific file name (containing both spaces and a quote) may have hit a bug in the file manager preventing the deletion.

In other words: it was never a permissions issue to begin with.

8 Likes