change to chmod as privileged user.
Merge pull request #722 from edx/e0d/idempotent-chmod

change to chmod as privileged user.