+ Post New Thread
Results 1 to 7 of 7
*nix Thread, Forgotten Username & Password in Technical; A friend has just phoned in a panic - he's got a works laptop with Vista & Ubuntu set up ...
  1. #1

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,136
    Thank Post
    1,913
    Thanked 1,345 Times in 743 Posts
    Blog Entries
    3
    Rep Power
    395

    Forgotten Username & Password

    A friend has just phoned in a panic - he's got a works laptop with Vista & Ubuntu set up on it.

    He's not used Ubuntu for some time and has forgotten the username and password that he set (he's only the technology director of an electronics company so you'd expect better, eh?!).

    He's got some work files that he needs for Monday and thinks he created them in Ubuntu using Open Office.

    Am I correct in saying to him all he needs to do is boot the laptop using an Ubuntu livecd and mount the hard drive and edit /boot/grub/menu.lst to remove the password? I seem to remember doing this myself or something very similar some time back.

    Many thanks.

    (It's Saturday night and I've had too much JD to think straight).

  2. #2
    Jamman960's Avatar
    Join Date
    Sep 2007
    Location
    London/Kent
    Posts
    994
    Thank Post
    186
    Thanked 197 Times in 157 Posts
    Rep Power
    47
    Not too sure about changing the menu.lst file but he should at least be able to copy the files accross to a flash drive once booted into a live cd with the drive mounted.

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    I doubt the password is on the bootloader, I expect it's the user account password in Ubuntu he's forgotten. Briefly, you need to:

    1. boot from a live cd and mount the root filesystem. example, it's at /dev/hda1:
    mkdir /mnt/tmp; mount /dev/hda1 /mnt/tmp
    2. mount other filesystems into /mnt/tmp/... if required
    3. chroot to the temporary filesystem and change his password
    chroot /mnt/tmp; passwd <user>
    4. exit the chroot, unmount filesystems and reboot

    If you need it I'm in Warwickshire and available in the morning or evening, but not afternoon.

  4. #4

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,136
    Thank Post
    1,913
    Thanked 1,345 Times in 743 Posts
    Blog Entries
    3
    Rep Power
    395
    Quote Originally Posted by powdarrmonkey View Post
    I doubt the password is on the bootloader, I expect it's the user account password in Ubuntu he's forgotten. Briefly, you need to:

    1. boot from a live cd and mount the root filesystem. example, it's at /dev/hda1:
    mkdir /mnt/tmp; mount /dev/hda1 /mnt/tmp
    2. mount other filesystems into /mnt/tmp/... if required
    3. chroot to the temporary filesystem and change his password
    chroot /mnt/tmp; passwd <user>
    4. exit the chroot, unmount filesystems and reboot

    If you need it I'm in Warwickshire and available in the morning or evening, but not afternoon.

    Thanks for that - he's coming over in the morning so we'll give it a try then. Thank you.

  5. #5
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    429
    Thank Post
    72
    Thanked 90 Times in 75 Posts
    Rep Power
    62
    Give this a try too.

    KON-BOOT - ULTIMATE WINDOWS/LINUX HACKING UTILITY :-)

    It works very well.

    BoX

  6. #6

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,071
    Thank Post
    160
    Thanked 935 Times in 730 Posts
    Blog Entries
    3
    Rep Power
    275
    When i had someone forget a password on Unbuntu i did the following, rather then right it out here is a link i have just pulled.

    How to reset your password in Ubuntu

    James

  7. #7

    Join Date
    Mar 2009
    Location
    Bottom Left
    Posts
    125
    Thank Post
    2
    Thanked 15 Times in 10 Posts
    Rep Power
    14
    I've been in that situation before and did what EduTech said. Quite scary how easy it is really!

    Quote Originally Posted by EduTech View Post
    When i had someone forget a password on Unbuntu i did the following, rather then right it out here is a link i have just pulled.

    How to reset your password in Ubuntu

    James

SHARE:
+ Post New Thread

Similar Threads

  1. Recover Forgotten BIOS Password
    By DaveP in forum Downloads
    Replies: 2
    Last Post: 7th February 2010, 12:26 PM
  2. Replies: 19
    Last Post: 5th December 2008, 12:26 PM
  3. Win XP Forgotten Password
    By flashsnaps in forum Windows
    Replies: 3
    Last Post: 15th July 2008, 12:25 PM
  4. sending username and password via post
    By RabbieBurns in forum How do you do....it?
    Replies: 13
    Last Post: 17th June 2008, 10:31 PM
  5. Replies: 3
    Last Post: 17th October 2007, 09:15 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •