Superuser privileges are given by being UID (userid) 0. grep for the user from the /etc/password file . The first numeric field after the user is the UID and the second is the GID (groupid). If the user is not UID 0, they do not have root privileges.