(Remember, the original one cannot run with admin privileges without a password using this method.) Log in as another user with admin priveleges. To give the user a password again after running this procedure, you can't use a GUI ( bug #882255), you have to use the command-line: Optionally, you can also enable automatic log-in, like this: Once the window opens, click on the down arrow to the right of "Action".Īnd change it to "Log in without a password", and then click on "Change": Go into user accounts, and click on the password field: Make sure that you click on Unlock to be able to accomplish the tasks below: This has been tested on Ubuntu 12.04 and 12.10. Only do this if the user is not the only admin user. You can follow any of the approaches according to your requirement.Warning: Be careful once you remove your password using this method, you won't be able to authenticate yourself to prove you have admin rights, in a GUI or in the terminal (like installing an application using Synaptic, or using sudo through the command-line). Ubuntu provides the utility of changing the password in multiple ways, three of them are discussed in this article, change the password by Command-Line, using passwd command, and by Graphical User Interface. Open Activities overview, in the search bar type “setting” click on the setting icon and a new window will get open.Ĭlick on the “Users” option on the left side, this displays all of the root user’s information, along with the password, but firstly unlock it to change the password by clicking on unlock button and then clicking on the password bar.Ī new pop-up window “Change password” will open, enter your current password then a new password, and then verify your new password and click on the “Change” button.Ĭhanging the password is a good habit as it prevents security thefts or can be changed for various reasons. If you are a beginner and don’t know how to use the terminal, you can also change the password using Graphical User Interface. How to Change the Root Password of Ubuntu using the Graphical User Interface Once the password is changed, log out of the root user by the below command. Now enter your new password and confirm that password again. Now run the mentioned below command to alter the password. You are now able to run commands as sudo user. Press Enter after typing your current password. ![]() ![]() Now firstly switch to root user by the below-mentioned command: $ sudo -i The root user can change the password for an account on the system, but a normal user can only change his or her own account password. In Ubuntu, the passwd command is used to update a user account password. How to Change the Root Password of Ubuntu using the passwd Command The output will show that the password has been successfully updated. You’ll be asked to create and confirm a new password. Run the mentioned below command to change the sudo password. Authorized users can run programs as another account, generally, the root user, using “sudo”. Giving sudo capabilities to normal users encourages Ubuntu users to do system administration duties. How to Change the Root Password of Ubuntu using the Command Line
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |