I personally don’t remember the time I used a computer without a login password. Today we store all kinds of personal information on our computers and mobile devices, so it’s a good idea to protect this information with a password that no one else knows about us. But what if we forget that signal? Well this can be a problem, unless you perform the steps that we detail below and that you can find conducting an internet search.
On Unix-based operating systems we need a password to perform almost any task. This is a positive thing, since, in theory, almost no file has permission to run, but it must be acknowledged that sometimes it can be a hassle to put either the password or, what goes this post, We must memorize the administrator password if we do not want to have any problems. But if we forgot, not everything is lost; we can reset it.
How to reset the administrator password in Ubuntu
The steps to follow are very simple. I don’t see what could go wrong and besides not being able to access our computer is the worst thing that could happen to us. If you are in this situation, just:
- We restart the computer.
- When you enter the GRUB, press the “i” (edit) key.
- We go to the kernel line and enter the command rw init = / bin / bash behind the line, which will look like the following image:
- After entering the above command, press Enter.
- Now press the «b» key (boot = start).
- The next time we start, we will be able to log into the computer without a password, so we will now have to create another one. Once started and logged into the system, we open a terminal and type the command passwd nomusuari, Where we will have to replace “username” with our username (my usually being Pablinux).
- Press Enter.
- We enter the new password.
- And finally, we restart the computer.
I hope you never see yourself in a situation where this information serves you well, but if you do, you will at least be able to access your computer.