clean up file permissions

Patsjoelie

Verified User
Joined
Mar 5, 2008
Messages
17
Hi all ...
I did a check on the /home directory on my server.
I see that a lot of files and directories have 0777 permissions.
Code:
find /home -perm 0777

Since I'm running SuPHP i believe that for:
directories: 755
files: 644
would be ok, or not?

I would do the following commands:
Code:
find /home -type d -exec chmod 755 {} \;
for directories, and
Code:
find /home -type f -exec chmod 755 {} \;
for files.

Am i missing something here?
I don't see why anything should have 777 permissions.

Thanks in advance for any clarification on this!
Have a great day!
Pat.
 
you wrote

Code:
find /home -type f -exec chmod 755 {} \;

but should be like

Code:
find /home -type f -exec chmod 644 {} \;

for files no?
 
Back
Top