LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 11: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, 12:50 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You can find instructions here: http://www.linuxclues.com/articles/11.htm
 
Old 05-15-2011, 10: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, 10:38 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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-16-2011, 12:27 AM   #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)
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-16-2011 at 12:28 AM.
 
  


Reply


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


All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration