Updates folder permissions.