Why does the root user need sudo permission

sudo

[root@notebook ~]# grep root /etc/sudoers
root    ALL=(ALL)   ALL

Question: Why does the root user need sudo permissions? I've seen it on different UNIX OSes. Can someone please explain this?

Best Answer

So that they can (from the man page):-

execute a command as another user

sudo isn't limited to allowing regular users to execute a command as root. Root can run a command as another user with:-

sudo -u bloggs <command>

Note that root will not need to supply the user's password.

Related Question