Bug 107

Summary: sudo does not prompt for the password before the process is sent to the background
Product: Sudo Reporter: slim shady <therealslimshady>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: CLOSED INVALID    
Severity: low    
Priority: low    
Version: 1.6.7   
Hardware: All   
OS: Linux   

Description slim shady 2003-04-17 17:17:46 MDT
>$ sudo ps -auxc &
[1] 6520
>$ Password:myPassword

bash: myPassword: command not found

[1]+ Stopped     sudo ps -auxc
>$

Sudo should first prompt for the password before the process is moved to the
background.
Comment 1 Todd C. Miller 2003-04-17 17:21:21 MDT
I'm not aware of any way sudo can do this.  Sudo just gets a signal that indicates input was blocked due to being backgrounded.  The actual backgrounding is handled by the shell, not sudo.
Comment 2 slim shady 2003-04-17 17:32:46 MDT
-b argument addresses this issue sufficiently. Closing this bug.