DiggDigg It! Slashdot It!Slashdot It! DeliciousDelicious It!

Fixing Sudo in Fedora Core

Here's how to get SUDO working in Fedora Core Linux

Senerio/Problem

So you just installed a fresh copy of Fedora Core Linux.  Everyone knows you aren't supposed to use root (Don't they?).  During the installation you created a new user named superman.  You finish the install, and logon as superman.  You deside to update Fedora using yum.  You go to a command prompt and type sudo yum check-update.  You get some funky error message saying you're not allowed to sudo. 

Solution/Fix

You'll have to logon as root at lease once to setup your /etc/sudoers file.

Log off and then log back on as root.

Open a terminal window and type the following (Remember, in this senerio your name is superman):

echo 'superman ALL=(ALL) ALL' >> /etc/sudoers

If you don't want to be prompted for a password every time you sudo, then use this instead:

echo 'superman ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

 


 

 

 

DiggDigg It! Slashdot It!Slashdot It! DeliciousDelicious It!


Sections