Restore file permissions