Jump to content

Recommended Posts

Posted

A while ago I tried to remove a folder from my account. At first, it looked like the deletion was successful, but when I re-accessed the root it was there again. It appears some files inside the folder have weird permissions: 444 and 555.

The problem is that I can't remove the folder. Hereby I'd like to ask someone with enough privileges to do this.

Posted

Create a file and name it something like "remove_dir.cgi" and chmod it to 755. Add the code below to that file:

 

#!/usr/bin/perl -w
print "Content-Type: text/html\n\n"; 
system 'rm -r "/home/byron/public_html/folder" 2>&1';

 

Be sure to set this to your correct npath to your folder:

 

/home/byron/public_html/folder

 

Then click onto that file and all files and folders in that directory (including that directory) should be gone. You'll probably need to refresh your cache.

Guest
This topic is now closed to further replies.
×
×
  • Create New...