sudo taking long time
        Posted  
        
            by Sam
        on Server Fault
        
        See other posts from Server Fault
        
            or by Sam
        
        
        
        Published on 2010-05-10T07:17:07Z
        Indexed on 
            2010/05/10
            7:34 UTC
        
        
        Read the original article
        Hit count: 397
        
On a Ubuntu 9 64bit Linux machine, sudo takes longer time to start. "sudo echo hi" takes 2-3 minutes. strace on sudo tells poll("/etc/pam.d/system-auth", POLLIN) timesout after 5 seconds and there are multiple calls(may be a loop) to same system call (which causes 2-3min delay).
Any idea why sudo has to wait for /etc/pam.d/system-auth? Any tunable to make sudo to timeout faster?
Thanks Samuel
© Server Fault or respective owner