change root password

Asked by alvaro

i need to change mi administrator account's password but using a terminal because my screen resolution do not let me see the window of password changing, my display cuts the lower part of screen

i alse want to know if is this possible to change the password for the user called: root (i am root)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
alvaro
Solved:
Last query:
Last reply:
Revision history for this message
Jim Hutchinson (jphutch) said :
#1

In general, you don't want to set up a root account. This is a big security risk as well as a good way to end up breaking things. The security model in Ubuntu does not involve creating a root account for these reasons. Instead, it allows the first user to perform admin functions with the "sudo" command. With this you are basically saying I know I'm not root but let me do this as if I were. With sudo you can do all the things you could do as root but with more security and less chance of breaking things.

While logged in as your normal user you can open a terminal and type

passwd

and change your password which will also change the password you use for sudo (assuming you are the first user and have sudo rights).

For more info on sudo see https://help.ubuntu.com/community/RootSudo.

You can also boot the recover mode which will bring you to a prompt with root rights and you change passwords there the same way.

Revision history for this message
alvaro (alvaro-rincon) said :
#2

thank you friend, if the system got broken blame it on root, not me, ok....

elegant comand passwd