check the real and effective user id