Added geteuid to the functions to check.