I have a Linux question regarding the sudo command and the root user. If I log into the root user using the su command, what is the difference between the following two commands?
root> sudo ./some_executable
is there a difference? I am trying to use an executable and noticed that the executable works fine with the first command, but fails for the second command stating that I am not running the command as root. I always thought that the sudo/su commands allow you to execute commands with root privileges and so doing the first command would be redundant. However, I did noticed that the root user is in the sudoers file so I did not know if this is a bug in the executable or if there really is a difference between running a command logged in as root vs using sudo?
sudo idand see if there is any difference?