- Running sudo commands take up to 30 seconds to execute. Time it takes is not consistent, sometimes the command returns quickly if it was previously called, but most of the time it takes much longer than it should. Additionally, when sudo is run while off the network, it responds instantly, but as soon as I connect the machine to my WIFI, it becomes slow.
- OS: Redhat7 Enterprise Linux
- Hardware: HP Zbook G3
- Smart card authentication is enabled
Sudo version 1.8.6p7 Sudoers policy plugin version 1.8.6p7 Sudoers file grammar version 42 Sudoers I/O plugin version 1.8.6p7
Solutions tried but failed:
- Hostname is on both lines in /etc/hosts
sudo strace -f -t sudo echoproved that the first sudo is the one that hangs, the second sudo command executes normally as expected.
- I changed the permissions of strace so I could run it as my username, so I ran
strace -f -t sudo echoand lo and behold the command returns instantly, and does not hang. This is unfortunate because I can't seem to run strace on the sudo command to see where I am getting stuck.