The behavior you’re observing—where the password asterisks (********) are replaced with spaces after pressing <kbd>Enter</kbd>—is a visual effect in the terminal and is not related to sudo itself. This is how most terminals handle password input for security and usability reasons: the password is not echoed back, and the asterisks (or lack thereof) are just a visual cue.
No, this is a standard terminal behavior and cannot be changed for sudo password prompts. The password is still correctly processed, regardless of the visual effect.
sudo -S to read the password from stdin, but this is not recommended for interactive use due to security risks.sudo -S (for scripting only)bashecho "mypassword" | sudo -S whoami
Warning: This is insecure for interactive use, as it exposes the password in your command history and process list.
In summary: This is normal terminal behavior and cannot be changed for sudo password prompts. The password is still processed correctly.