How to access Ubuntu without the administrator password

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:

  1. We restart the computer.
  2. When you enter the GRUB, press the “i” (edit) key.
  3. We go to the kernel line and enter the command rw init = / bin / bash behind the line, which will look like the following image:

Command to be able to reset the Ubuntu password

  1. After entering the above command, press Enter.
  2. Now press the «b» key (boot = start).
  3. 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).
  4. Press Enter.
  5. We enter the new password.
  6. 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.


Related Posts

Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *

You might also like

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.