Lock user password

sudo passwd -l user
or:
sudo usermod -L user