Use sec_initial_uid() in the places where being root doesn't matter,