Claim your rights!

Have you ever found yourself in a situation where a web application or a WordPress plug-in created a folder or a file you couldn’t touch afterwards, not even to rename or delete? It happens more often then you might think, most of the times because a developer neglected to chmod newly created item to 666 after it was created. Which causes the same to remain property of the web server account and inaccessible to the ftp account one uses to work with files on a web server.

So what is one to do? As a quick hack, you could use your WordPress Media Library to upload a new file to inaccessible folder. To preform this stunt you first change the uploads folder (go to Settings/Miscellaneous ) to the one you wish to access and then use Media Library to upload a new file. Don’t forget to change uploads folder back to wp-content/uploads afterwards!

As with any hack, this one is limited, clumsy, awkward and way uncool, so one has to ask: is there a better way. As ussually, it is and this time it is called PHP Shell Terminal and can be obtained from Sourceforge. After configuring the user in phpterm.php just upload the files to your WordPress folder on a web server and point to phpterm.php. Now you can use basic Linux commands to move around folders on your webserver and change ownership (chown) and/or permisions (chmod) of any file.


This entry was posted in Wordpress and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>