You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Make Password Asterisks Visible in the Terminal Window

Author (Read 5733 times)

0 Members and 1 Guest are viewing this topic.

Re: Make Password Asterisks Visible in the Terminal Window
« Reply #5 on: January 15, 2015, 03:20:46 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
shengchieh, thank you for the sugggestion. I thought that was covered in the help manual but I couldn't find it.
Suggestions for the help manual are in this thread https://www.linuxliteos.com/forums/index.php?topic=1437.0
You can post your suggestions there. All ideas and suggestions and ideas are always welcome.
 

Re: Make Password Asterisks Visible in the Terminal Window
« Reply #4 on: January 14, 2015, 10:11:17 PM »
 

shengchieh

  • Forum Regular
  • ***
  • 155
    Posts
  • Reputation: 46
  • Linux Lite Member
    • View Profile
    • Tux's Links
If no asterisk, at least the users should be warned.   Adding asterisk to terminal password is nice.

Sheng-Chieh
 

Re: Make Password Asterisks Visible in the Terminal Window
« Reply #3 on: January 14, 2015, 09:15:44 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Should give peace of mind to some of the new people to linux as this has come up a few times before. The warning is appropriate. Thanks Misko :)
I've noticed that in a few threads. People usually think something is wrong when they type and nothing shows up on a screen.
 

Re: Make Password Asterisks Visible in the Terminal Window
« Reply #2 on: January 13, 2015, 08:09:24 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Should give peace of mind to some of the new people to linux as this has come up a few times before. The warning is appropriate. Thanks Misko :)
 

Make Password Asterisks Visible in the Terminal Window
« Reply #1 on: January 13, 2015, 11:54:21 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430

PLEASE READ THIS FIRST:
Echoing asterisks gives away information:
1) Password length, and
2) Makes it easier to video-tape keypresses by syncing them with screen feedback.

We will open the /etc/sudoers file and change a setting.
IMPORTANT: Use extreme caution when editing  /etc/sudoers file. Never edit the sudoers file with a normal text editor (leafpad,gedit,mousepad..).
Always use the visudo command as described here. If the sudoers file has improper syntax, you will be left with a system where it’s impossible to obtain elevated or root privileges. The visudo command opens a text editor like you would with normal text files, but the command also validates the syntax of the file upon saving it.This prevents configuration errors in the sudoers file from blocking sudo operations, which could be your only method of obtaining root privileges.

Press Ctrl + Alt + T to open a Terminal window and type in
Code: [Select]
sudo visudo
Use the arrow keys on your keyboard to move the cursor to the end of the following line:
Code: [Select]
Defaults         env_resetChange the line by adding ,pwfeedback to the end of the line.
Code: [Select]
Defaults                 env_reset,pwfeedback


Another way to do it (choose one of them):
You can also press Enter after env_reset to make a new line and type the following on the new line:
Code: [Select]
Defaults                 pwfeedback
NOTE: The space between Defaults and pwfeedback should be a tab.
When you type in Defaults press TAB key on your keyboard to add space and then type in pwfeedback


Once you're done editing press Ctrl + O to write out the changes.
You will be asked for the File Name to Write at the bottom. Press Enter to accept the default.
When it's saved Press Ctrl + X to close the nano editor.

Now type in
Code: [Select]
sudo -kThat will invalidate the user's cached credentials.  In other words, the next time sudo is run a password will be required.
Finally type in
Code: [Select]
sudo su
« Last Edit: January 23, 2015, 06:16:34 PM by Scott(0) »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section