26 September, 2018

Chmod all directories except files (recursively)

For Folders

find /path/to/base/dir -type d -exec chmod 755 {} +

For Files

find /path/to/base/dir -type f -exec chmod 644 {} +



No comments:

Post a Comment

Redirection in IIS

 This config will redirect every request to https://www.domain.com <configuration>     <system.webServer>         <rewrite>...