Linuxtipstricks – Just another /linux/blog

July 4, 2009

Ho to reset Ubuntu password (Kubuntu, Xubuntu, gOS, Mint and other Ubuntu based OSs)

Filed under: user tipstricks — Antonio Portuesi @ 9:47 pm
Tags: , , , , , , , , , ,

What if you lost your account password?
Before you destroy your linux installation check this out:

switch on your computer, and as soon as you can, strike the Esc key on your keyboard to display GRUB menu;

highlight and select the recovery mode;

your distro will boot into a recovery shell and, after you get a console prompt, type:

user@pc:~$ passwd user

where the user is your username;

choose, enter and confirm a new password when prompted;

restart your machine:

user@pc:~$ reboot

and take a deep breath.

Advertisements

6 Comments »

  1. when you forgot your username, first typ ls /home

    Comment by maurice — April 16, 2012 @ 2:36 am | Reply

  2. Thanks for help. It worked fine but I was confused (and often am). The user@pc:~$ looked more like user@pc:~# on my cmd line. A newbie error but… slowed

    Comment by Joe — August 16, 2012 @ 3:42 am | Reply

  3. Thanks, just what I needed!

    Comment by pastol — November 12, 2012 @ 9:05 am | Reply

  4. It’s going to be ending of mine day, however before end I am reading this wonderful article to increase my know-how.

    Comment by hacking software — August 7, 2013 @ 10:33 am | Reply

  5. Very good blog post. I definitwly appreciate this website.

    Stick with it!

    Comment by avengers alliance guide — September 28, 2013 @ 12:40 pm | Reply

  6. I just purchased a FreeGeekChicago computer and they did not give me a password. I chose the guest login and I was able to run the xubuntu system. However, when I suspended the computer and tried to come back to the system, it asked me for a password. Is there any way to log in because I never had a password

    Comment by Abdul H. Muhammad — October 28, 2013 @ 10:50 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: