Redo a lot of the historical chown code