commande pour verrouiller un utilisateur

sudo usermod -L username

#to disable all login methods
sudo usermod -L -e 1 username

#to unlock a user
sudo usermod -U USER

#to verify
sudo chage -l linuxize
Chris Nzoka-okoye