Description of problem: Starting at init level 3, login as username; startx get Gnome desktop, open terminal, sudo su - Wait half a minute before user is converted to root. This time delay only happens to the specific user who is logged in pre-GUI, and at the console. Does not have time delay for sudo through an ssh terminal nor for other users. Version-Release number of selected component (if applicable): RHE5.1, RHE5.2 How reproducible: see above Steps to Reproduce: 1. Boot to initlevel 3. Login as any user with account on machine 2. startx open GUI (in my case, Gnome) 3. Open terminal 4. sudo su - (yes, this user has sudo su - privileges) 5. wait 30 seconds before prompt returns with user being root Actual results: wait 30 seconds before prompt returns with user being root Expected results: less than 30 seconds Additional info: Does not have time delay for sudo through an ssh terminal nor for other users. Not a critical bug because functionality is not effected, just a time delay. I was puzzled by this for months and finally figured out that if I login using init level 5; sudo speeds up to less than a second. sudo must be going through more steps when user logs in at init level 3 and then starts GUI?
possibly not a bug and by design?
Could you please attach the output of "strace -r -osudo.log sudo su -" ? You'll have to set u+s on /usr/bin/strace to be able to run the above command. And don't forget to unset it afterwards :]
Created attachment 331507 [details] sudo.log as per request
Maybe this is the same problem as in bug #498749. Please try the solution mentioned there.
Is this problem the same as bug #498749?
Closing this bug because there's no response from the reporter and it seems that this isn't a bug in sudo.