Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-13-2011, 10:39 PM   #1
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
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You can find instructions here:
Old 05-15-2011, 09:35 PM   #3
LQ Newbie
Registered: May 2011
Posts: 2

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

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
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002

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.


Old 05-15-2011, 11:27 PM   #5
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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)
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.

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

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