Solved Very Slow Sudo
-
@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 su
and switch to root, I am able to run commands simultenously. It is only an issue when runningsudo
Is 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-terminal
and 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 localhost
I tried127.0.0.1 systemname
and it made no difference.Shouldn't it be
127.0.0.1 localhost
and127.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 hostname
still 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 localhost
I tried127.0.0.1 systemname
and it made no difference.Shouldn't it be
127.0.0.1 localhost
and127.0.1.1 systemname
As far as I know, all 127.* is the same loopback address.
-
I'll would compare
hostnamectl
,/etc/hosts
and/etc/hostname
-
I can't find anything else besides the
/etc/hosts
being screwy. This guy wrote a blog post on it just last year. -
If you were running the
sudo
command from root, is still slow too? -
Maybe the sudoers file is messed up?
-
Check
/etc/resolve.conf
Is 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 localhost
I tried127.0.0.1 systemname
and it made no difference.Shouldn't it be
127.0.0.1 localhost
and127.0.1.1 systemname
As 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/hosts
and/etc/hostname
All 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 localhost
I tried127.0.0.1 systemname
and it made no difference.Shouldn't it be
127.0.0.1 localhost
and127.0.1.1 systemname
So when originally troubleshooting I removed
localhost
and changed it tosystemname
I needed both. -
how long has systemname been a thing?
-
@Dashrender said in Very Slow Sudo:
how long has systemname been a thing?
I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.
-
@IRJ said in Very Slow Sudo:
@Dashrender said in Very Slow Sudo:
how long has systemname been a thing?
I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.
yeah - sorry,
My question was off topic -
I know about Localhost - I've never seen systemname before...
-
@Dashrender said in Very Slow Sudo:
@IRJ said in Very Slow Sudo:
@Dashrender said in Very Slow Sudo:
how long has systemname been a thing?
I changed my system name like 2 months ago and thats around the time I had this issue. So yes it appears to be 100% related.
yeah - sorry,
My question was off topic -
I know about Localhost - I've never seen systemname before...
I'm sure there's a good reason for both systemname and localhost assignments, or it woudlnt' be like that.
-
This post is deleted! -
suuuuuuuuuuu.......doooooooooooooooooo