Upgraded to Ubuntu 9.04 from 8.10 and forgot my username

Asked by JimB

Last night I upgraded to 9.04 through the internet and this morning after intstalling it, it asked for my "username", which apparently I forgot (I did remember my password). I did go through recovery and retrieved the name from my root directory, but apparently it was not my username or perhaps it truncates after so many letters. Is there anyway I can retrieve my username? I' do have the original Ubuntu 8.10 DVD but would hate to lose the time (and my data) by starting over. In your answer please give explicit directions since I'm not that familiar with Linux. I've been a MS Windows person and I'm trying to convert to Linux. Thanks

Question information

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

you shouldnt lose data if the data is important as you will have a backup if the data is important. No backup means the data is disposable.

anyway

If you boot to root recovery mode (ESC at grub, select recovery mode then select root console) you can then change your password as you wish

for example, if your normal username is 'foo' you would execute

passwd foo

and you will set the password, once you reboot with

shutdown -r now

you will be able to log on with that password.

Revision history for this message
JimB (jbarden1) said :
#2

Thanks, that solved the problem.