long delay running su and sudo

asked 2015-06-01 21:37:05 -0500

rkeech gravatar image

I've upgraded an x86_64 system from Fedora 21 to Fedora 22. After the upgrade I experience a delay of about 20 seconds if I use the su command or sudo.

Strace shows that, when waiting, su is blocked on a socket read (fd #5).

I've seen other threads which talk about .xauth file being needed and about having a hosts file entry that matches the hostname. I've tried both these things without success.

Any ideas?

edit retag flag offensive close merge delete

Comments

Usually that's a DNS problem - or you may have sssd or other external dependencies setup for user authentication.

bit4man gravatar imagebit4man ( 2015-06-01 22:15:36 -0500 )edit

Are you using ssh, or a terminal session? I have no entry in /etc/hosts for this computer's host name and I have no trouble with su (I don't use sudo.) either in a terminal or in ssh from my laptop.

sideburns gravatar imagesideburns ( 2015-06-02 01:19:17 -0500 )edit

check the order of service for authentication grep "passwd\|shadow" /etc/nsswitch.conf

baoboa gravatar imagebaoboa ( 2015-06-02 12:29:05 -0500 )edit