Tech Journal Back to Tech Journal

Configuring sudo

sudo is a wonderful program for running a single command as another user (read: "SU do"). You can edit the /etc/sudoers file to allow or disallow users from calling sudo (certainly a better alternative than letting a lot of users run su.)

One of the coolest options is not requiring a password for sudo, as this comes in handy while you're still setting up a computer. Not a good idea in general, since this is a big security hole. Here's the line to put in the /etc/sudoers (will allow the wheel group):

%wheel  ALL=(ALL)   NOPASSWD: ALL

If you want to allow the wheel group to run sudo, but still require a password:

%wheel  ALL=(ALL)   ALL

Just note that usage of sudo is limited only to the users allowed in /etc/sudoers.

Last updated on 2005-07-29 14:00:00 -0700, by Shalom Craimer

Back to Tech Journal