LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2022, 10:55 AM   #1
cyberparrot
LQ Newbie
 
Registered: Aug 2020
Posts: 1

Rep: Reputation: Disabled
unable to input sudo password on terminal


The following two lines were shown in the terminal:-

joseyau@joseyau-H81M-DS2:~$ sudo apt install basilik
[sudo] password for joseyau: X

Seeing the prompt for password, I tried to input the password, but an empty space showed up in the "x" position. Could not clear it to input the password.

How can I clear up this to continue putting in the password?

Last edited by cyberparrot; 10-12-2022 at 10:57 AM.
 
Old 10-12-2022, 11:00 AM   #2
EatMyFedora
LQ Newbie
 
Registered: Oct 2022
Posts: 1

Rep: Reputation: 0
Did you try typing the password and hitting enter even though you can't see any characters being output?
 
Old 10-12-2022, 11:32 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Normally passwords are not echoed to the screen, for sudo you can add this to your sudoers file, use visudo command to edit it.

Code:
Defaults        pwfeedback
 
Old 10-12-2022, 09:11 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
On Linux, passwds are not normally echoed as you type them, for security.
Just get into the habit of typing them 'blind'.
 
Old 10-12-2022, 11:00 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
You absolutely COULD enter the password, and started to do so. Why did you stop?
Just because you cannot see what you have typed does not make it mysteriously no longer exist, it just means you cannot SEE it. For Password entry, that is NORMAL!
 
Old 10-13-2022, 07:45 AM   #6
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by wpeckham View Post
For Password entry, that is NORMAL!
Normal for sudo / command-line entry.

For most people/software, what's normal is feedback in the form of asterisks or dots.

 
Old 10-13-2022, 11:40 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by boughtonp View Post
Normal for sudo / command-line entry.

For most people/software, what's normal is feedback in the form of asterisks or dots.
On most systems, that is configurable for PAM and SSHD, and many other services. All of mine are set to not give feedback on security entry for passwords or codes. .
 
Old 10-13-2022, 05:03 PM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by wpeckham View Post
On most systems, that is configurable for PAM and SSHD, and many other services. All of mine are set to not give feedback on security entry for passwords or codes. .
How is it done with PAM? I can't find anything relevant online, nor in man pages, nor looking through /etc/pam.d files

For sudo, showing password asterisks is an easy config change:
Code:
sudo sh -c 'echo "Defaults pwfeedback" > /etc/sudoers.d/01_feedback'
(Where "01_feedback" is a new file named as per man sudoers. Reverting the change can be done by removing the file, or renaming it to 01_feedback.disabled)

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Differences between Su, Sudo Su, Sudo -s and Sudo -i LXer Syndicated Linux News 0 09-15-2022 07:47 PM
LXer: How to Create Sudo User and Change Sudo Password Timeout in Ubuntu LXer Syndicated Linux News 0 04-26-2021 03:46 PM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
[SOLVED] sudo password different from non-sudo password edrom Linux - Newbie 2 04-20-2012 03:00 PM
Repeated "input: AT Translated Set 2 keyboard as /class/input/input" messages AcerKev Mandriva 2 09-16-2007 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration