Bug 449141

Summary: sudo slow with init level 3
Product: Red Hat Enterprise Linux 5 Reporter: Meryll Larkin <alwanza>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: ebenes, sgrubb
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-31 12:29:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sudo.log as per request none

Description Meryll Larkin 2008-05-30 18:37:38 UTC
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?

Comment 1 Meryll Larkin 2008-05-30 18:58:49 UTC
possibly not a bug and by design?

Comment 2 Daniel Kopeček 2009-02-03 12:45:26 UTC
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 :]

Comment 3 Meryll Larkin 2009-02-11 02:15:20 UTC
Created attachment 331507 [details]
sudo.log as per request

Comment 4 Daniel Kopeček 2009-08-20 11:31:29 UTC
Maybe this is the same problem as in bug #498749. Please try the solution mentioned there.

Comment 7 Steve Grubb 2010-07-21 14:50:40 UTC
Is this problem the same as bug #498749?

Comment 8 Daniel Kopeček 2010-08-31 12:29:50 UTC
Closing this bug because there's no response from the reporter and it seems that this isn't a bug in sudo.