use geteuid instead of getuid