Checking and chaning directory permissions automatically

Hi all,
My first post here.

I need a small script to check the directory permssions on my /home/uploads and if there are any newly created directory in uploads chmod them to 1777.

The upload directory is for my users who upload their pictures and I by default their directories are given 755. I dont' want to use umask as uploads is the only directory to be checked.

Does anyone know/have a bash script for doing this?
I'd appreciate any help. I've done my search but found nothing.

one command will do the trick

find /home/upload -type d -exec chmod 1777 {} \;

This will change the perms of all the directories to 1777 - even if they were already set to 1777.

Thanks blowtorch,

So, basically I can just do:

chmod -R 0777 /home/uploads

blowtorch's code selects only directories under /home/uploads to chmod ... your code chmods everything under /home/uploads ... not quiet the same ...

I see.

Thanks