+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Mar 2010
- Posts
- 74
Permission to be set with Suphp and Suexec
suPHP increases server security and fixes the issue of scripts creating files owned by nobody
Files now dont have to be 666 and folders no longer need to be 777 to be writable. The e permissions below are sufficient
Files: 644
Unwritable Files: 444
Folders: 755
You can use the following commands to change the permissions :
find /home/*/public_html -type d -perm 777 -exec chmod 755 {} \;
This checks for directories with 777 permissions and chmods them to 0755.
find /home/*/public_html -type f -perm 666 -exec chmod 644 {} \;
find /home/*/public_html -type f -perm 777 -exec chmod 644 {} \;
These check for files with full permissions and changes them to 0644. You can use the d switch for directories.


LinkBack URL
About LinkBacks



Reply With Quote