[sudo-users] sudo very slow
Justin Alcorn
justin at jalcorn.net
Tue Jul 15 14:45:23 EDT 2008
I'm using Debian Etch, and confirmed that my sudo package is up to date (
1.6.8p12-4)
I have multiple Debian machines, and sudo runs fine on all except this one.
It happens to be my DNS, DHCP and samba server.
sudo takes a long time. strace sudo su - shows me delays in what looks
like trying to send a log entry.
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(4, "<85>Jul 15 14:41:22 sudo: ro"..., 90, MSG_NOSIGNAL
---pause----
...
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
getpid() = 3648
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(3, "<86>Jul 15 14:41:48 su[3648]: Su"..., 60, MSG_NOSIGNAL
---pause---
...
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
send(3, "<86>Jul 15 14:42:18 su[3648]: + "..., 47, MSG_NOSIGNAL
---pause---
...
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
send(3, "<38>Jul 15 14:42:43 su[3648]: (p"..., 80, MSG_NOSIGNAL
--pause--
...
As you can see, it took more than a minute. Sometimes it is much longer.
Exiting from the sudo shell also is delayed, as is logging on via SSH.
I've looked around thinking it's a reverse DNS, but I can do a reverse
lookup and get a PTR record.
Ideas?
--
--
Justin B. Alcorn
More information about the sudo-users
mailing list