Ubuntu is a Linux operating system. Modifying the password and user name is a dangerous action. Please modify it carefully.
Ubuntu change password steps:
1、 Enter Ubuntu, open a terminal, and enter sudo su to become the root user. Note that you must first become a root user! ! !
2、 sudo passwd user (user is the corresponding user name)
3、 Enter the new password and confirm the password.
4、 Change the password successfully, restart, enter the new password to enter Ubuntu.
Steps to change user name on Ubuntu:
1、 Enter Ubuntu, open a terminal, and enter sudo su to become the root user. Note that you must first become a root user! ! !
2、 gedit /etc/passwd, find the line that represents you, and change the username to the new username. Note: Only modify the user name! Keep the full name, directory, etc. behind!
3、 gedit /etc/shadow, find the line that represents you, and change the username to the new username
4、 gedit /etc/group, you should find that your username is in many groups, modify them all!
5、 After modification, save and restart.
Note: Be careful when making changes, and don't type a letter incorrectly.
Tip: If you want to change the password and user name, please change the password first. After restarting, change the user name and restart. If you change your username first and then change your password, you may not be able to log in to Ubuntu.
Recommended Posts