[Bug 2107726] Re: Edge case while using `passwd` cmd

Daniel Letzeisen 2107726 at bugs.launchpad.net
Sun Apr 20 23:09:08 UTC 2025


** Package changed: ubuntu => shadow (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/2107726

Title:
  Edge case while using `passwd` cmd

Status in shadow package in Ubuntu:
  New

Bug description:
  I was changing my sudo password to a new password and this is what
  happened:

  ```
  ~$ sudo passwd
  New password: 
  BAD PASSWORD: The password is shorter than 8 characters
  Retype new password: 
  passwd: password updated successfully

  ```

  - I tried to use the new sudo password and this happened:

  ```
  $ sudo vi /etc/passwd
  [sudo] password for ... : 
  Sorry, try again.
  [sudo] password for ... : 
  Sorry, try again.

  ```

  The old password worked, meaning that we have incorrect logging when a
  short password is entered twice.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/2107726/+subscriptions




More information about the foundations-bugs mailing list