Why does my server hang every time I execute Sudo Su?

Why does my server hang every time I execute Sudo Su?

Every time I try to execute sudo su – or any other sudo command for this matter my server hangs, sometimes it take 10 mins to respond and sometimes it never does. I checked /etc/hosts file which was configured correctly.

Why does Sudo hang when I update hostname?

However, if you update your hosts file to reflect the hostname change the hang will go away. and then see what system call it is possibly hanging on. This might provide a good clue as to what is happening on your system. My guess based on what you see is that hostname resolution is problematic on your system.

How to fix Sudo hang on Windows 10?

Using apt-get remove to uninstall those packages fixed it. Don’t remove those packages if you are on a computer requiring kerberos (pam_krb5) obviously. My sudo hang went from a consistent 30s to 0s.

Why does Sudo hang without asking for password?

I just did a fresh install of Ubuntu and now when I try to use sudo in the terminal emulator, it just hangs there without even asking me for a password. If I switch to the terminal (Ctrl + Alt + F1) and login, sudo works as expected.

Why is Sudo taking way too long on my Mac?

Why is sudo taking way too long? I recently updated to macOS Sierra 10.12.4 Beta (16E144f) and it might be what is causing sudo to delay up to 10 minutes as it’s the most recent change I recall since this problem occurred. I have never had to wait so long for a basic program and something is clearly wrong.

How long does it take to do Sudo Su?

When we want to do “sudo su -” it takes a long time (almost 5 minutes) After that and once you are root if you logout and do “sudo su -” again it does not take that much. This is happening with these servers only, we have a few seconds of delay in some of our servers but these ones are taking a lot of time.

How can I get sudo to work again?

Now running sudo should work again. Next step is to check the differences between the old sudoers file (you copied away in step 2) and the current one and add those changes step by step back to /private/etc/sudoers or /private/etc/sudoers.d/, each time running a command using sudo to check if the change breaks it.

Is there a problem with sudo in Ubuntu?

I am not sure which version of ubuntu you have installed, but there is a bug (race condition) in sudo, which hangs indefinitely blocking on a select. I too had this problem with Ubuntu 16.04 . Using “top” command i found that two processes “vnstat” and “NetworkManager” are consuming 100% CPU.