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. I also checked /etc/resolv.conf file which looked good as well.
any suggestions?
I am running redhat 6.9
sudoafter you’re already root? Does it still hang then? If so, you might try runningstrace(or some similar program) on it. – G-Man Oct 28 '17 at 6:15strace sudo -ior so might be your friend, even if its output is daunting, because you can see what it's trying to do when it hangs.) – Ulrich Schwarz Oct 28 '17 at 6:16