Package: passwd
Version: 1:4.2-3

Hi, I observed a strange behaviour when pwconv should delete several
lines from /etc/shadow.

Here is how to reproduce it:

Starting from a standard installation, add some users, for example:

  root@debian:~# for i in $(seq 10); do adduser --no-create-home 
--disabled-password --gecos '' test$i; done

As expected, they appear in /etc/passwd and /etc/shadow.
Now delete them from /etc/passwd, e.g using vipw.
They are still in /etc/shadow, pwconv should be able to fix that.
However, every other entry will be kept:

  root@debian:~# pwconv
  root@debian:~# grep test /etc/shadow
  test2:*:16724:0:99999:7:::
  test4:*:16724:0:99999:7:::
  test6:*:16724:0:99999:7:::
  test8:*:16724:0:99999:7:::
  test10:*:16724:0:99999:7:::

Even more strange, after a second pwconv only test8 remains.

The same thing happens with grpconv.


All the best,
Christian Sievers

Reply via email to