Recover user name under Ubuntu
I created an Ubuntu virtual machine with VMWare and haven't used it for a while and I've forgotten my user name. Is there a way to recover it. I can boot to single user and log in as root, but would like to recover files I made when I was actively testing the Distro.
|
Have a look at /etc/passwd - I'm sure you'll recognise yourself ... :p
Won't help with the password for that user itself but "passwd" can fix that. |
You can access all user files as root in any Linux distribution. If all you want is a Graphic environment, create a new user in single mode with command: useradd or adduser. Then as root in a shell, you can retract all files from the old user's account and kill it.
|
Thanks, I knew about /etc/passwd from Slackware I wasn't sure if it would work. Ubuntu is so Windowsy that I didn't think it would work. Still having trouble adapting to having to us SU in a terminal to get things done.
|
All times are GMT -5. The time now is 04:27 AM. |