Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th July 2009, 06:36 AM
Crunchy Carrot Offline
Registered User
 
Join Date: Jul 2009
Posts: 22
Sudo is slow in F11

Hey all. This is my first time using Fedora. After using Ubuntu and finding it way too unstable, Opensuse and finding it bloated, Arch and finding it confusing, I have finally settled on Fedora 11.

The problem that I am having is a minor annoyance. I found that my default user couldn't use Sudo, so I added the following to the sudoers file:

Quote:
USER_NAME ALL=(ALL) ALL
-- Where User_Name is the the name of my default user.

The problem is that I can now use sudo but it is incredibly slow. For example if I type sudo yum install _____

It'll ask me for my password and then pause for a minute or two literally before proceeding. It isn't the network causing this problem because it does the same thing if I issue commands that are specific to files only on my computer. Interestingly enough I don't have this problem if I use tty, only in Konsole.\

Edit: in case it isn't obvious I'm running KDE (whichever version is default on an F11 x64 DVD).

Last edited by Crunchy Carrot; 17th July 2009 at 06:59 AM.
Reply With Quote
  #2  
Old 17th July 2009, 03:49 PM
Crunchy Carrot Offline
Registered User
 
Join Date: Jul 2009
Posts: 22
Fixed. Apparently your hosts file becomes corrupted if you change your hostname during dvd installation. Repairing this file (adding your hostname) not only makes sudo work speedily, it also solves laggy firefox problems!
Reply With Quote
  #3  
Old 5th August 2009, 08:59 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
linuxopera
I am having the same problem: sudo is extremely slow.

But I do not understand what the fix is. My /etc/hosts looks like this:

Code:
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
I have tried to change it to this

Code:
127.0.0.1 Spectrum
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
... or this:
Code:
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
127.0.0.1 Spectrum
... where "Spectrum" is my host name (as reported by calling "hostname" from a command line).

Both the above attempts results in Linux refusing to start up.

How is /etc/hosts supposed to look?

Thanks in advance.
Reply With Quote
  #4  
Old 5th August 2009, 09:12 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Here's mine (unique machine name omitted):
Code:
127.0.0.1       <machine-name>.localdomain    localhost.localdomain   localhost       <machine-name>
So you might try:
Code:
127.0.0.1       Spectrum.localdomain    localhost.localdomain   localhost       Spectrum
Re-start of network service daemon required.

V
Reply With Quote
  #5  
Old 5th August 2009, 09:33 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
linuxopera
Quote:
Originally Posted by Hlingler View Post
Here's mine (unique machine name omitted):
Code:
127.0.0.1       <machine-name>.localdomain    localhost.localdomain   localhost       <machine-name>
So you might try:
Code:
127.0.0.1       Spectrum.localdomain    localhost.localdomain   localhost       Spectrum
Thanks. I will try that.

Quote:
Originally Posted by Hlingler View Post
Re-start of network service daemon required.
What process is that? Can it be restarted without a full reboot?
Reply With Quote
  #6  
Old 5th August 2009, 09:35 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
I am assuming that you are using the 'network' service daemon and not 'NetworkManager'. In either case:
su -
service network restart

Or:
su -
service NetworkManager restart


V
Reply With Quote
  #7  
Old 5th August 2009, 09:47 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
linuxopera
Quote:
Originally Posted by Hlingler View Post
I am assuming that you are using the 'network' service daemon and not 'NetworkManager'. In either case:
su -
service network restart

Or:
su -
service NetworkManager restart


V
I am using NetworkManager.

This worked. Now sudo is fast again. Thanks for the help.
Reply With Quote
Reply

Tags
f11, slow, sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo very slow actaea Using Fedora 3 12th June 2009 07:08 PM
F8 slow to boot and slow to open terminal/gedit JonR Using Fedora 8 25th March 2008 08:37 AM
how do i use sudo linux-newby Using Fedora 34 16th September 2007 02:28 PM
Slow bootup and slow system on Asus P4P800-E Deluxe with 3.4Ghz P4-HT viper_one Using Fedora 25 11th July 2007 07:58 AM
why I cannot use sudo Stevenisme Using Fedora 14 29th December 2004 06:36 AM


Current GMT-time: 22:52 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat