change comuter name and password

Asked by Roger S Stuart

I have my laptop from my divorce. I need to change the computer name and password but have forgotten the password.
Can you help me get into the boot page to reset both of these items.
I wrote a while back and got the answer but had a little crash and lost the directions. If you could, please, help me again.
I will save to a mem stick this time. Thank you so very much.
Roger S Stuart

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Kanishchev
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can hold SHIFT at boot and select recovery mode then select root. You can now run:

passwd foo; reboot

Replace foo with your username. Eg:

passwd dave; reboot

You can now use the new password for admin things.

Revision history for this message
Best Anton Kanishchev (ak12-deactivatedaccount) said :
#2

you can follow the instructions here to reset your password http://www.psychocats.net/ubuntu/resetpassword

to reset your username , simply go to system settings, and under user accounts will be your account. unlock the account (you will need to type in the password you just reset) , and click on the username, you can now change the username

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

To change hostname. Run:

gksudo gedit /etc/hostname

Then make NO CHANGES to the file but in the same terminal run:

gksudo gedit /etc/hosts

Now both files are open, change the hostname as well as every occurrence in hosts. Sudo needs to be able to resolve the hostname to 127.0.0.1 so opening both files before editing is important. Save the new files and reboot to test. You can see the current hostname by running:

hostname

Revision history for this message
Roger S Stuart (awsloane357) said :
#4

I got a msg that this page no longer exists. tried several times. Thanks any way ==Roger stillhave problem