Very Slow Sudo
-
I am on a Ubuntu 18.04 system that is very slow when issuing any command via
sudo. It can take 30 seconds for the command to complete. Any other command is completed instantaneously.The system has very little CPU and memory usage with no resource issues over a very long period of time. If I do
sudo suand switch to root, I am able to run commands simultenously. It is only an issue when runningsudo -
@IRJ said in Very Slow Sudo:
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference.Shouldn't it be
127.0.0.1 localhostand127.0.1.1 systemname -
Another option would be update to current and see if the issue persists.
-
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference. -
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.

-
@IRJ said in Very Slow Sudo:
I am on a Ubuntu 18.04 system that is very slow when issuing any command via
sudo. It can take 30 seconds for the command to complete. Any other command is completed instantaneously.The system has very little CPU and memory usage with no resource issues over a very long period of time. If I do
sudo suand switch to root, I am able to run commands simultenously. It is only an issue when runningsudoIs this a Desktop or Server?
Which terminal emulator are you using?
-
@black3dynamite said in Very Slow Sudo:
@IRJ said in Very Slow Sudo:
I am on a Ubuntu 18.04 system that is very slow when issuing any command via
sudo. It can take 30 seconds for the command to complete. Any other command is completed instantaneously.The system has very little CPU and memory usage with no resource issues over a very long period of time. If I do
sudo suand switch to root, I am able to run commands simultenously. It is only an issue when runningsudoIs this a Desktop or Server?
Which terminal emulator are you using?
This is a desktop and I am using terminator.
I launched the default
gnome-terminaland I got a password prompt immediately. I entered in my pw and the sudo command had same delay :(. On subsequent sudo commands withgnome-terminal, I am having the same time out issue. -
Everything I'm seeing for this is related to the hostname either not being in /etc/hosts or that file simply being misconfigured.
-
@IRJ said in Very Slow Sudo:
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference.Shouldn't it be
127.0.0.1 localhostand127.0.1.1 systemname -
@DustinB3403 said in Very Slow Sudo:
Everything I'm seeing for this is related to the hostname either not being in /etc/hosts or that file simply being misconfigured.
I do have some shit in my host file, so I copied it and then made a new one with just one line
127.0.0.1 hostnamestill no joy -
@black3dynamite said in Very Slow Sudo:
@IRJ said in Very Slow Sudo:
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference.Shouldn't it be
127.0.0.1 localhostand127.0.1.1 systemnameAs far as I know, all 127.* is the same loopback address.
-
I'll would compare
hostnamectl,/etc/hostsand/etc/hostname -
I can't find anything else besides the
/etc/hostsbeing screwy. This guy wrote a blog post on it just last year. -
If you were running the
sudocommand from root, is still slow too? -
Maybe the sudoers file is messed up?
-
Check
/etc/resolve.confIs the DNS server valid and can the machine access it and do hostname lookups?
-
@IRJ said in Very Slow Sudo:
@black3dynamite said in Very Slow Sudo:
@IRJ said in Very Slow Sudo:
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference.Shouldn't it be
127.0.0.1 localhostand127.0.1.1 systemnameAs far as I know, all 127.* is the same loopback address.
Ya it's the whole /8
-
@black3dynamite said in Very Slow Sudo:
I'll would compare
hostnamectl,/etc/hostsand/etc/hostnameAll have the same hostname configured.
-
@IRJ Did you check the sudoers file in
/etc/suoders -
@black3dynamite said in Very Slow Sudo:
@IRJ said in Very Slow Sudo:
@DustinB3403 said in Very Slow Sudo:
Another option would be update to current and see if the issue persists.
No effect.
I already had
127.0.0.1 localhostI tried127.0.0.1 systemnameand it made no difference.Shouldn't it be
127.0.0.1 localhostand127.0.1.1 systemnameSo when originally troubleshooting I removed
localhostand changed it tosystemnameI needed both. -
how long has systemname been a thing?