LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2008, 03:27 PM   #1
waltjones40
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
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.
 
Old 12-09-2008, 03:37 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Have a look at /etc/passwd - I'm sure you'll recognise yourself ...
Won't help with the password for that user itself but "passwd" can fix that.
 
Old 12-09-2008, 04:32 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 12-10-2008, 11:10 AM   #4
waltjones40
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover files from a Deleted User account cekflores Linux - Newbie 4 03-06-2008 12:15 AM
recover/repair ubuntu 7.10 Jayla Linux - Newbie 4 02-27-2008 04:31 PM
is it possible to recover deleted files under Ubuntu vansch76 Linux - Newbie 8 12-11-2007 06:51 PM
Recover deleted files from user kmalla Red Hat 3 08-24-2006 01:41 PM
recover user and home dir powadha Linux - General 5 04-16-2004 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration