Question: how to check if user is blocked linux?
Answer: Run the passwd command with the -l switch to lock the given user account. You can check the locked account status either by using passwd command or grep the given user name from /etc/shadow file. Checking the user account locked status using passwd command.