![]() ![]() Once done, click on the Change button on the top. ![]() If you are changing your own password, you’ll also have to enter your current password. Now, select Set password Now option on the dialog box and type and confirm the new password. You can select any user you want, including your main admin account. You need to unlock the users first, using the currently logged-in user password Select Users and Unlock it Here, you can access all the available users on your system. In Settings, scroll down a bit and go to Users. Go to Overview (press Windows/Super key) and search for Settings. The steps should be more or less the same for other desktop environments and Ubuntu versions. To do this, as in the previous example we will only have to use the passwd command as it's shown in the following: passwd (nombre de usuario)Īfter all this, we can restart our computer and start using our new password.I have used GNOME desktop with Ubuntu 22.04 here. To avoid this problem, we will have to write the following in the terminal to mount it as read-write: mount -rw -o remount / STEP 7 Say that our file system / can be mounted as read-only at this point, so we will have problems when changing the password. The previous option will take us to the root terminal. This is where it will ask us for the current root password, so if we have forgotten it it is better to use method 1 to change it. Later, we can choose any of the lines in which we can read ' Recovery Mode'from the Grub menu. STEP 3Īt this point, among all the options we will have to choose the option ' Advanced options for Ubuntu'to go to the next screen. If you don't get it, follow the steps in Method 1. STEP 2Īfter the reboot, we should be on Grub. In this step we will have to restart the computer again. Now we will restart typing (for example): exec /sbin/init Method 2įirst of all, I want to say that this method will help us to change passwords, but we will need to have the current root password at hand. The password is already changed and configured. As always, it will ask us to enter the new password twice. In this terminal we are only going to have to write the passwd command, to change the root password or passwd (existing user) to change the password for a particular user. ![]() We should get out of Grub and get into it prompt root (none): / #. To finish in the edit mode, we are going to press the Ctrl + X keys. Once the line is found, we will have to change the previous string to rw init = / bin / bash so that it is as shown in the previous screenshot. That is why we will have to look for the line in which it says: ro quiet splash $vt_handoff. We are going to navigate with the arrow keys to the last lines.Īt this point, we are going to edit text. STEP 3Īfter pressing the 'e' key, the edit mode from the Grub boot menu. But we will be able to access the menu we are looking for if hold down the SHIFT key during startup. In such a case, Ubuntu does not boot into Grub to save time. If you don't see the Grub screen, then you probably only have Ubuntu installed on your machine. Now we are going to see this method step by step.Īfter turning the computer on again and while it is in Grub, we will have to press the 'e' key. There what we will have to do is write the passwd command to change the password. After this we will only have to boot and we will be in the console as root. To change the user or root password from the GRUB, just edit the boot line and change a line at the end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |