Bugzilla – Bug 250
commands executed through the sudo are slow.
Last modified: 2007-07-20 07:26:32 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...
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.
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.
Should be fixed in sudo 1.6.9 which is available now. If not, please re-open.