Bug 107 - sudo does not prompt for the password before the process is sent to the background
sudo does not prompt for the password before the process is sent to the backg...
Status: CLOSED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.7
All Linux
: low low
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-17 17:17 MDT by slim shady
Modified: 2003-04-17 21:32 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.