Put this into ~/.bashrc file of your account (if the file does not exist, you create it):
shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
In order for this to start working you need to log out and in again.
Put this into ~/.bashrc file of your account (if the file does not exist, you create it):
shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
In order for this to start working you need to log out and in again.
After you tried to log in with root user three times and got the message “maximum number of log ins exceeded” you have to restart the computer.
On the GRUB menu, press “E” once to enable edit, and press “E” again on the kernel line to edit it. Near the end of this line change value “ro” to “rw” and add “init=/bin/bash” at the end of this line.
Now boot into Linux and you will have root shell access where you can change the password or do whatever you please.