check euid instead of uid