The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 3,872β€…    Votes:  9β€…    βœ… Solution
Tags: command-line   sudo   password  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/860767
Title: How can I make stars appear when I type sudo password?
ID: /2016/12/15/How-can-I-make-stars-appear-when-I-type-sudo-password_
Created: December 15, 2016
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


After entering sudo at the Terminal if you want stars / asterisks to appear with each password character you type you need to configure it using:

sudo visudo

Locate the line containing env_reset and add the parameter , pwfeedback behind it. Here is an example:

  GNU nano 2.5.3                      File: /etc/sudoers.tmp                                          Modified  

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset, timestamp_timeout=120, pwfeedback
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

^G Get Help     ^O Write Out    ^W Where Is     ^K Cut Text     ^J Justify      ^C Cur Pos      ^Y Prev Page
^X Exit         ^R Read File    ^\ Replace      ^U Uncut Text   ^T To Spell     ^_ Go To Line   ^V Next Page

After making changes save the file using Ctrl+O to write the file. You will be prompted for the file name but simply press Enter to accept the default. After saving, exit the editor using Ctrl+X.

Also on this example the timeout value has been set to 120 minutes (2 hours) so that you aren’t constantly prompted for sudo password every 15 minutes. You can leave this option out if you like or increase / decrease it as you like.

⇧ Wine 1.6 from default repository has tiny fonts How to start Ubuntu in Console mode  β‡©