How to chmod folders or files only phptuts November 20, 2017 To chmod folders only, you can use command: chmod 755 $(find /path/to/base/dir -type d) To chmod files only, you can use command: chmod 644 $(find /path/to/base/dir -type f) phptuts