Announcement

Collapse
No announcement yet.

Cool tip - show asterisks when typing sudo password.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cool tip - show asterisks when typing sudo password.

    Saw this on G+ and thought it was a cool change: https://www.tecmint.com/show-asteris...word-in-linux/

    Gives you asterisk feedback when you type your sudo password in a terminal. Neat.

    Please Read Me

    #2
    Nice to know this 'how to' about sudo. But, from a conspiracy theorist's point of view, this would allow 'those looking over your shoulder' to know how long your password was, and that would be of significant help for said 'would-be hackers wanting to gain access to my computer'.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Originally posted by Snowhog View Post
      Nice to know this 'how to' about sudo. But, from a conspiracy theorist's point of view, this would allow 'those looking over your shoulder' to know how long your password was, and that would be of significant help for said 'would-be hackers wanting to gain access to my computer'.
      Point taken, that's probably why it's not the default. However, I can't think of a single other place (cell phones, web pages, etc.) where you don't get feedback when typing passwords.

      Besides, if you're in my office while I'm "sudo-ing" I'll be careful!

      Please Read Me

      Comment


        #4
        Originally posted by oshunluvr View Post
        Besides, if you're in my office while I'm "sudo-ing" I'll be careful!
        And you know I'm not there now how? [slithering silently in the shadows]
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Doesn't work for me.
          I added "env_editor=nano" to my environment and then issued "sudo visudo". The file appeared, but not surrounded by the nano editing structure. And, when I moved to the end of the line where "pwfeedback" was to be added the cursor stayed on the "t" at the end of "env_reset" and wouldn't move any farther to the right. None of the Nano commands worked.
          Adding the "w" permission do sudoers didn't help, so I removed it.
          Reading "man sudoers" was Greek, and I had two years of Greek, but it didn't help.
          Last edited by GreyGeek; Jan 15, 2018, 12:06 PM.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            See https://www.digitalocean.com/communi...ntu-and-centos

            Scroll down to What is Visudo?
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Originally posted by Snowhog View Post
              All that stuff I knew.
              When I first tried "sudo sudoers" I was presented with a screen that responded only to the arrow keys but there wasn't any editing commands available or active. Even "esc" didn't work, so I closed the terminal. I added the "env_editor=nano" env setting even though Ubuntu supposedly had it set (but not visible?) in the environment. so I set it to nano. That didn't help.
              It appears as if running "sudo sudoers" behaves as if I had really run "man sudoers".
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #8
                sudo update-alternatives --config editor

                Then select your editor of choice.

                Please Read Me

                Comment


                  #9
                  Originally posted by oshunluvr View Post
                  sudo update-alternatives --config editor

                  Then select your editor of choice.
                  I saw that in the web pages I was reading to solve this problem but didn't use it because I could edit my env parameters in ~/.bashrc and set envv_editor (and EDITOR) myself. But, I tried it anyway and .... it worked! It never dawned on me that "sudo visudo" was using the root environment and not mine.
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment

                  Working...
                  X