I got the following error when trying to run any command via sudo

sudo: account validation failure, is your account locked?

After trying to repair it via a LiveCD and chroot I gave up and restored the whole system from a backup (took 6h). Afterwards everything worked fine.
Now i wanted to install wireguard-tools and eopkg wanted to update another 800 packages. Upgrade broke (gtest conflicts) in the middle causing the same error.

Now I am again stuck with a system without sudo access.
I have the list of packages it (tried) to install during the update. Could it be related to PAM? I saw conflicts during the installation where the PAm package 1.5.3 Release 30 replaced my

  • /usr/share/defaults/etc/pam.d/other
  • /usr/share/defaults/etc/pam.d/system-auth
  • /usr/share/defaults/etc/shells

Any idea on how to repair the system? I dont want to rollback to the backup...just to get a broken system after the next update/upgrade...

  • Thanks for the answer. That has put me on the right track.

    Reason for the problem: After the update I still had an /etc/pam.d/system-auth file which overwrote the original /usr/share/defaults/pam.d/system-auth provided by pam package.

    This then caused the error mentioned above. After I deleted the /etc/pam.d/system-auth via a LiveCD/chroot it works again.

    I don't know where this /etc/pam.d/system-auth comes from. But maybe I tried something in the past and forgot about it.
    I will investigate further if there are still some hidden problems.

Thanks for the answer. That has put me on the right track.

Reason for the problem: After the update I still had an /etc/pam.d/system-auth file which overwrote the original /usr/share/defaults/pam.d/system-auth provided by pam package.

This then caused the error mentioned above. After I deleted the /etc/pam.d/system-auth via a LiveCD/chroot it works again.

I don't know where this /etc/pam.d/system-auth comes from. But maybe I tried something in the past and forgot about it.
I will investigate further if there are still some hidden problems.