set proper file permissions.