Check set[e]uid return code