Root execute command as a normal user
Normal users can execute as command as root using sudo.
My question is, how can root execute something as a normal user.
In the following example, if I execute as root "sudo -u user whoami"
the program whoami replies with root. I'm guessing there must be another way..
Thanks in advance..