#1  
Old 2nd February 2009, 13:03
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default sudo pause or delay

If I run "sudo ls" for example, it pauses for about 2 minutes before running the command. It does this for anything I run via sudo. I have no idea where to start looking...
Reply With Quote
Sponsored Links
  #2  
Old 3rd February 2009, 04:28
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default

12hrs later the problem seems to have disappeared, I haven't changed anything or rebooted...
Reply With Quote
  #3  
Old 3rd February 2009, 05:48
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default

And, it's back. I tried strace, but nothing useful came of that. Any suggestions on debugging this?
Reply With Quote
  #4  
Old 3rd February 2009, 19:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What distribution are you using? Any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd February 2009, 19:43
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

I'd check pam configuration (/etc/pam.d/sudo)
________
Body Science
________
Vapor Genie Review

Last edited by marpada; 13th May 2011 at 02:06.
Reply With Quote
  #6  
Old 3rd February 2009, 19:58
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default

My bad, I'm using fedora:
2.6.27.12-170.2.5.fc10.x86_64

The problem comes and goes which is very frustrating.

The error_log, messages doesn't have anything of note. I couldn't find anything in the logs.
Reply With Quote
  #7  
Old 4th February 2009, 16:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Strange. But you could log in directly as root - you don't have to use sudo then.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 4th February 2009, 18:46
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default

Indeed, but then I lose all my configs: bash, vim, etc.
Reply With Quote
  #9  
Old 8th December 2009, 14:41
aporter aporter is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I've been plagued by this problem for months on my Ubuntu server, and I think I finally figured it out. Looking in the /etc/pam.d/ directory to see what happens when I try to sudo, I see that it calls a pam module called ecryptfs. I commented that line out, since I do not have any encrypted home directories. The problem seems to have disappeared.

Like several others before me, I have had trouble re-creating the problem on demand, since it seemed to delay the first time I sudo, but then it goes quickly for the next few hours. I managed to get the delay problem to occur repeatedly by doing "sudo -K" so it would "forget", and then my test, either "sudo -i" to get a shell or "time sudo pwd" to show me how much time it's taking (usually about 20 seconds).

I hope this points others in the right direction. I plan to submit this as a bug on the Ubuntu site, once I can figure out what category to put it in.

Alan Porter
Reply With Quote
Reply

Bookmarks

Thread Tools
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
SVN + Trac module for ISPConfig3 quentusrex Developers' Forum 13 15th November 2008 23:39
Web folders excluded from permissions being changed by ISPConfig bswinnerton Installation/Configuration 1 15th March 2008 22:07
sudo to enable root on Ubuntu 7.10 server klf Installation/Configuration 4 2nd January 2008 22:21
Two named processes running atjensen11 Server Operation 11 21st December 2007 05:35
sudo su -- vs. sudo su - pushembekar Technical 2 25th March 2006 16:00


All times are GMT +2. The time now is 20:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.