Fix the ownership and permissions