Perform the following steps to unlock a common user as the root user.
Step1: Log in to the Linux OS as the root user.
Step2: Run the pam_tally2 -u swift -r command to unlock the common user. In this example, the user name is swift.
Step3: After the account is unlocked, log in as the swift user. If you forget the user password, you can log in as the root user and run the passwd swift command to reset the password.