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?

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
LAPIII
Posts: 47
Joined: 2015-07-07 19:26

How can I see asterix as I type my password in the terminal?

#1 Post by LAPIII »

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):
  • 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:

    Code: Select all

    Defaults env_reset,pwfeedback 
    Press Ctrl + X to complete the edit, followed by Y and Enter/Return to save the changes entered

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How can I see asterix as I type my password in the terminal?

#2 Post by Head_on_a_Stick »

LAPIII wrote: 2022-08-12 20:47I have Peppermint OS which is based on Debian Bullseye
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
This shows the command configuration for the user:

Code: Select all

sudo -l
deadbang

LAPIII
Posts: 47
Joined: 2015-07-07 19:26

Re: How can I see asterix as I type my password in the terminal?

#3 Post by LAPIII »

Code: Select all

# grep -v '^$\|^#' /etc/sudoers
This didn't output anything.

Code: Select all

sudo -l
Output:

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
    

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: How can I see asterix as I type my password in the terminal?

#4 Post by L_V »

Code: Select all

/etc/sudoers:9:10: syntax error
Defaults	Defaults env_reset pwfeedback
         ^
should be:

Code: Select all

Defaults env_reset,pwfeedback

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: How can I see asterix as I type my password in the terminal?

#5 Post by Head_on_a_Stick »

LAPIII wrote: 2022-08-13 06:06

Code: Select all

# grep -v '^$\|^#' /etc/sudoers
This didn't output anything.
The "#" symbol indicates that the command should be run as root. Don't actually type it in.
LAPIII wrote: 2022-08-13 06:06

Code: Select all

/etc/sudoers:9:10: syntax error
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

Post Reply