Install visudo on CentOS 5.2
We need visudo to edit the “sudoers” file. We want to edit this file to enable users in the “wheel” group to conjure sudo (as described on the Slicehost site. I’ve never known visudo to be unavailable, but, for whatever reason, it was absent from a fresh install of CentOS on my host.
It could be that it’s in a directory that’s not in your PATH, but this was not my problem. Instead, I needed to install sudo. Doesn’t that just sound weird? Why wouldn’t sudo be installed? Anyways, the fix was simple:
yum -y install sudo
4 thoughts on “tutorial: “visudo: command not found””
On a later day, I tried using visudo, only to discover that, once again, “command not found”. This time it was a path issue; adding /usr/sbin to my path resolved the problem (ref: http://wiki.centos.org/TipsAndTricks/BecomingRoot).
Thank you much for the hint!
I’m glad it was helpful
Pacman -S sudo for arch linux
Comments are closed.