Bug 250

Summary: commands executed through the sudo are slow.
Product: Sudo Reporter: Clodoaldo Joćo Rodrigues <rodrigcj>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: normal    
Version: 1.6.7   
Hardware: IBM   
OS: AIX   

Description Clodoaldo Joćo Rodrigues 2007-06-06 14:17:29 MDT
Hello All

We are having the following problem:  
When any command is executed using the "sudo",  
this delaying a more little for the to return them.
below an example:

With the sudo:

$ time sudo ls -l
total 204
-rw-------   1 cl139vo  sysadmin      96358 May 30 11:02 .lsof_pgen01
-rw-r--r--   1 cl139vo  sysadmin        241 May 17 12:20 .profile
-rw-------   1 cl139vo  sysadmin       2984 Jun  6 10:53 .sh_history
drwx------   2 cl139vo  sysadmin         96 May 22 04:09 .ssh
-rw-r--r--   1 cl139vo  sysadmin        122 May 17 12:20 local.cshrc
-rw-r--r--   1 cl139vo  sysadmin        617 May 17 12:20 local.login
-rw-r--r--   1 cl139vo  sysadmin        590 May 17 12:20 local.profile

real    0m4.15s
user    0m0.05s
sys     0m0.08s

Without the sudo:

$ time ls -l
total 6
-rw-r--r--   1 cl139vo  sysadmin        122 May 17 12:20 local.cshrc
-rw-r--r--   1 cl139vo  sysadmin        617 May 17 12:20 local.login
-rw-r--r--   1 cl139vo  sysadmin        590 May 17 12:20 local.profile

real    0m0.07s
user    0m0.00s
sys     0m0.00s

$ sudo -V
Sudo version 1.6.7p5

Please, would you have some idea of the one what can be happening?

OBS: We have a NIS server.

Thanks...
Comment 1 Todd C. Miller 2007-06-13 16:15:05 MDT
It is possible that this is caused in part by sudo's closing of all file descriptors which can be slow if the resource limit for open files is high.  Newer versions of AIX provide the F_CLOSEM fcntl() which will be used in sudo 1.6.9 and higher.
Comment 2 Todd C. Miller 2007-06-19 12:12:49 MDT
Please try the sudo 1.6.9 beta and see if that resolves the problem for you.  See http://www.sudo.ws/sudo/beta.html for a link to the beta version.
Comment 3 Todd C. Miller 2007-07-20 07:26:32 MDT
Should be fixed in sudo 1.6.9 which is available now.  If not, please re-open.