Digg It! Slashdot It!Slashdot It! Delicious Delicious 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.  You were a good boy/girl and you read some of the documentation.  You know you aren't normally supposed to use the root user, so during the installation/setup you created a new user named superman.  You finish the install and logon as superman.  You deside to update your system 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. 

So you're not supposed to use root but you can't sudo by default? 

 

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

 


 

 

 

 Digg It! Slashdot It!Slashdot It! Delicious Delicious It!

Sections


--Advertisments--