Skip to main content

Recommended file and directory permissions

This article provides an overview of filesystem permissions in UNIX-type operating systems.

Filesystem permissions can often cause issues in Windows, particularly when using the IIS web server. You can find more information about Windows filesystem permissions in relation to IIS at IIS And Origen.

UNIX/Linux

In UNIX/Linux systems, the recommended default permissions for directories are 755 and for files are 644. These permissions help ensure a reasonable level of security, although actual permissions may vary depending on your specific web server's security configuration.