How Do I Know If I Am a Root User in Linux?
Contents If You Are Able to Use Sudo to Run Any Command (For Example Passwd to Change the Root Password), You Definitely Have Root Access. a Uid of 0 (Zero)...
If you are able to use sudo to run any command (for example passwd to change the root password), you definitely have root access. A UID of 0 (zero) means “root”, always.
How do I know if user is root or sudo?
Executive summary: “root” is the actual name of the administrator account. “sudo” is a command which allows ordinary users to perform administrative tasks. “Sudo” is not a user.
Must Read
Who is root user in Linux?
The root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user, and the superuser.