Erik's blog

Code, notes, recipes, general musings

tutorial: “visudo: command not found”

with 3 comments

screenshot: visudo: command not found

Goal:

Install visudo on CentOS 5.2

Motivation:

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.

Solution:

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

Advertisements

Written by Erik

July 30, 2009 at 8:57 pm

Posted in tutorial

Tagged with , ,

3 Responses

Subscribe to comments with RSS.

  1. 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).

    erikeldridge

    August 3, 2009 at 7:35 pm

  2. Thank you much for the hint!

    Artem

    May 12, 2010 at 2:10 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: