Bugzilla – Bug 107
sudo does not prompt for the password before the process is sent to the background
Last modified: 2003-04-17 21:32: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.
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.
-b argument addresses this issue sufficiently. Closing this bug.