Revert "setgid -> setegid and setuid -> seteuid"

This reverts commit c15bcf01baedb1e08d1ca12ec2cf56bd88068bf2.