How to set permissions on particular folder

Most of software that need to upload files, comes with instruction that ask users to set 777 permissions to upload folder. This is absolutely not needed in mod-suphp . in mod suphp when a PHP file is executed in 777 folder, it will give internal server error.


To set correct permissions on all folders within client directory, we do following.


Cd /home/user/pubic_html/

find ./ -type d -print0 | xargs -0 chmod 0755