LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-13-2011, 10:39 PM   #1
abenaki
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
Unhappy Forgot user password and cannot logon to Ubuntu Studio


I have forgotten my user password and cannot get past the logon screen. Is there a way to recover beside reinstalling Ubuntu Studio from scratch? (I am new to Ubuntu Studio).
 
Old 05-14-2011, 11:50 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You can find instructions here: http://www.linuxclues.com/articles/11.htm
 
Old 05-15-2011, 09:35 PM   #3
abenaki
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
how to get to command prompt

Hello,
This procedure is all nice, but how do I get to the command prompt from the logon screen (popup)?
I have just upgraded to Ubuntu Studio 11.04 from 10.10. and now cannot get passed the logon popup window.
 
Old 05-15-2011, 09:38 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Just as long as you remember your root password, you can use the passwd <username> method. Control + Alt + F[1-6] will bring you to a terminal.

Cheers,

Josh
 
Old 05-15-2011, 11:27 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Ubuntu usually has a locked root account with unknown password. So if that is the case you need a live CD and
  1. boot from it
  2. go to your HD (mount it if necessary)
  3. edit the file /etc/passwd and remove the first x on the line containing your username
Below an excerpt of the file on one of my systems (slackware)
Code:
teboho:x:1003:100:,,,:/home/teboho:/bin/bash
lboya::1004:100:,,,:/home/lboya:/bin/bash
The entries contain a number of fields seperated by colons (':'). The first field contains the username and the second field is the password field.
The first line has a user (teboho) with a password; you can see this from the x following the name. Removing the x will remove the password and will result in a line like the second one. The password will be empty.

Note:
this assumes that your system uses shadow passwords (standard setups do). If it does not, the x will actually be a longer piece of text; just remove it.

Last edited by Wim Sturkenboom; 05-15-2011 at 11:28 PM.
 
  


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
EeePC 4G - forgot user password pumukl Linux - Newbie 5 01-28-2011 08:46 AM
Forgot Logon User & Password to get on Linux Laptop Letere Linux - Newbie 10 04-17-2007 07:31 AM
forgot my user password Avatar Linux - General 3 01-24-2005 03:48 PM
Lol I forgot a user's password urzumph Linux - Security 4 03-04-2004 05:00 AM
Forgot my user account password Gilbert Linux - Newbie 1 02-22-2004 11:51 PM

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

All times are GMT -5. The time now is 04:33 AM.

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