Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Website Security - mass changing file and directory permissions

A Joomla Install was giving me headaches (stupid "unable to connect to database" errors) yesterday. I ended up browsing the Joomla Forums in the meantime, went from install Stuff --> install security --> website security stuff, and found some interesting info on file/folder permissions.


First, I ssh'd onto the server, went to the public_html directory, and did this:

  find . -type d -not -perm 755
  find . -type f -not -perm 644

I got facesmacked by a bunch of files/directories listed with not-so-happy permissions. I ran these to change them all.

  find . -type d -Exec Chmod 755 {} \;
  find . -type f -exec chmod 644 {} \;

Resource usage skyrocketed and it took a good 30 seconds or so, but it changed all the permissions. Joomla and Wordpress are still working.

I ran the first stuff again. Looks like phpBB creates sql junk in the temp folder with different permissions, but everything else was now fine. Time to start looking for a replacement for phpBB. Not only does it do a lot of stupid less-than-efficient stuff in MySQL, but this too.

One of these days I'll get to it....


This post first appeared on What I've Been Up To Today..., please read the originial post: here

Share the post

Website Security - mass changing file and directory permissions

×

Subscribe to What I've Been Up To Today...

Get updates delivered right to your inbox!

Thank you for your subscription

×