I'm getting this error
-bash: sudo: command not found
while trying to check version of Sudo using the following command
sudo -V
Here is the screenshot of it: screenshotofbasherror--bash: sudo: command not found
Thanks in advance!
I'm getting this error
-bash: sudo: command not found
while trying to check version of Sudo using the following command
sudo -V
Here is the screenshot of it: screenshotofbasherror--bash: sudo: command not found
Thanks in advance!
The reason may be that you don't have sudo package.
For me, the OS is CentOS-7.2 and I get the sudo command from the sudo rpm package. This can be done from the following command:
yum provides /usr/bin/sudo
When you type the upper command, you can get the following output:
sudo-1.8.19p2-13.el7.x86_64 : Allows restricted root access for specified users
Repo : base
Matched from:
Filename : /usr/bin/sudo
sudo-1.8.6p7-17.el7_2.x86_64 : Allows restricted root access for specified users
Repo : @updates
Matched from:
Filename : /usr/bin/sudo
And I can query the sudo rpm package
sudo-1.8.6p7-17.el7_2.x86_64