Home > linux > Fix file permission

Fix file permission

January 5th, 2010

Sometimes if you mess up with file permission in a lot of file. It takes time to repair it. This is how to repair file permission in 2 commands

For directory

find [your path here] -type d -exec chmod 755 {} \;

And for file

find [your path here] -type f -exec chmod 644 {} \;
Share

linux

  1. No comments yet.
  1. No trackbacks yet.

Switch to our mobile site