Step #1: Log in to the system as the "root" user.
Step #2: For this example, let’s assume the user was logged in on the terminal device "/dev/ttyi1e".
To find the process(es) that are associated with that terminal, type "ps -t ttyi1e". At least one process should be listed for that terminal.
The output from this command might look like this:
PID TTY TIME COMMAND 348 i1e 0:02 sh
Step #3: Now, kill the "hung" process. Type "kill -9 348". (348 is the Process ID number).
Step #4: The terminal should now be unlocked. Hit the "<Enter>" key at that terminal several times to check.