-
Notifications
You must be signed in to change notification settings - Fork 4
Development Tips
M N Islam Shihan edited this page Jun 28, 2015
·
1 revision
In a secured environment, only directories should have 0755 permission. All other files that are not writable should have 0644 permission which grants full access to the owner (typically the user that runs the web server) only, to prevent unauthorized access even by the user of same system. And that's why 0644 is the default for production servers.
This is not a major issue on dedicated servers or VPS, but risky for shared hosting environments. :-)
It's better to configure git not to track file modes in development environments, where we usually write codes using our default login user, using:
git config core.fileMode false