1. After entering the sudo passwd
command in the terminal , there will be a prompt to enter the password of the currently logged in user. After entering the password, the root user's password will be set
Supplement:
When you want to modify the password of an ordinary user, you can use the passwd
command