- Open a new Terminal window (Ctrl + Alt + T) and enter the following command:
Code: Select all
sudo visudo
- Use your keyboard navigation keys (or mouse scroll wheel) to move to the line that reads:
Code: Select all
Defaults env_reset
- Move the square box to the end of this line and add the following text so that it reads:
Press Ctrl + X to complete the edit, followed by Y and Enter/Return to save the changes enteredCode: Select all
Defaults env_reset,pwfeedback
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How can I see asterix as I type my password in the terminal?
How can I see asterix as I type my password in the terminal?
I have Peppermint OS which is based on Debian Bullseye and I ddon't like that I can't see my password in the terminal. The DE in Peppermint OS is XFCE and this does not work (from How to See Asterisks When Typing Your Password in the Terminal):
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: How can I see asterix as I type my password in the terminal?
Well you should probably ask them why their sudo is configured differently then because the pwfeedback sudoers option works for me in bullseye.
Did you check the contents of the file to see if your attempted edit was successful?
Code: Select all
# grep -v '^$\|^#' /etc/sudoers
Code: Select all
sudo -l
deadbang
Re: How can I see asterix as I type my password in the terminal?
Code: Select all
# grep -v '^$\|^#' /etc/sudoers
Code: Select all
sudo -l
Code: Select all
/etc/sudoers:9:10: syntax error
Defaults Defaults env_reset pwfeedback
^
[sudo] password for luis:
Matching Defaults entries for luis on luis-virtualbox:
mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User luis may run the following commands on luis-virtualbox:
(ALL : ALL) ALL
(ALL) ALL
Re: How can I see asterix as I type my password in the terminal?
Code: Select all
/etc/sudoers:9:10: syntax error
Defaults Defaults env_reset pwfeedback
^
Code: Select all
Defaults env_reset,pwfeedback
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: How can I see asterix as I type my password in the terminal?
The "#" symbol indicates that the command should be run as root. Don't actually type it in.LAPIII wrote: ↑2022-08-13 06:06This didn't output anything.Code: Select all
# grep -v '^$\|^#' /etc/sudoers
Always use visudo(8) to edit /etc/sudoers — it performs a syntax check before saving the file to help prevent problems such as this.
deadbang