Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2015
    Location
    Detroit, Michigan
    Posts
    6

    Unhappy hi everyone please help me!!


    i downloaded the ubuntu system and i know nothing about any of these things. i used it once a long while ago and i dont remember my password. ive looked at alot of different forums and just everywhere i no one seems to have the exact same problem. what to do?? i have an Asus Chromebook. i can go to the start up of ubuntu but when it asks for the username and password im lost. please help!!!!

  2. #2
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    You need to chroot into your installation and then you can change your password with passwd command.
    Last edited by ugjka; 06-03-2015 at 02:44 PM.

  3. #3
    Just Joined!
    Join Date
    Jun 2015
    Location
    Detroit, Michigan
    Posts
    6

    Unhappy

    Quote Originally Posted by ugjka View Post
    You need to chroot into your installation and then you can change your password with passwd command.
    i have chroot and i tried that but i dont rememer the current password. then i tried something else that i saw and it said "token lock busy"

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    Well you don't really know what I meant with chrooting.

    Chrooting into a Linux environment
    chrooting is a very important skill that any *nix administrator must know. It's essentially what allows one to repair an existing Linux environment by entering it from another environment. The process is actually relatively simple, and useful for doing tasks such as reinstalling GRUB, repairing a broken kernel, resetting the root password, etc.
    You need to boot from live cd/usb and chroot into your installation and then change password with passwd

    1. Boot into live image

    2. Open terminal and become root with su

    3. Mount the partition that contains the filesystem of root

    For example:
    Code:
    mount /dev/sda1 /mnt
    4. Mount some stuff needed for chrooting

    Code:
    mount -o bind /dev /mnt/dev
    mount -t proc /proc /mnt/proc
    mount -t sysfs /sys /mnt/sys
    mount -t tmpfs /tmp /mnt/tmp
    5. Now you can chroot

    Code:
    chroot /mnt /bin/bash
    6. Now you can change your root password with
    Code:
    passwd
    Or password for any user
    Code:
    passwd yourusername

    After done exit chroot by typing exit, unmount everything and reboot

    Code:
    exit
    umount /mnt/dev
    umount /mnt/proc
    umount /mnt/sys
    umount /mnt/tmp
    umount /mnt
    reboot

  6. #5
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    All this chrooting isn't needed to reset a forgotten password.

    Boot your computer and press the shift key before Ubuntu starts loading. This should display the grub menu. If you see the Ubuntu logo, reboot and try again.
    Select the Advanced options for Ubuntu entry.
    Select the first (or only) recovery mode entry.
    Select Drop to root console from the choices that appear.
    Reset your password using the command passwd YourUserName. It will look like nothing is happening when you enter the password.
    Finally run the command reboot

    It's been a while since I have done this so the menu options may be worded slightly differently but I think I'm fairly close
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  7. #6
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    Doesn't that still require root password? What prevents others from gaining root and changing your password?

  8. #7
    Just Joined!
    Join Date
    Jun 2015
    Location
    Detroit, Michigan
    Posts
    6
    Quote Originally Posted by elija View Post
    All this chrooting isn't needed to reset a forgotten password.

    Boot your computer and press the shift key before Ubuntu starts loading. This should display the grub menu. If you see the Ubuntu logo, reboot and try again.
    Select the Advanced options for Ubuntu entry.
    Select the first (or only) recovery mode entry.
    Select Drop to root console from the choices that appear.
    Reset your password using the command passwd YourUserName. It will look like nothing is happening when you enter the password.
    Finally run the command reboot

    It's been a while since I have done this so the menu options may be worded slightly differently but I think I'm fairly close
    okay so wait.. my system is currently in chrome os so then wha?

  9. #8
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Quote Originally Posted by ugjka View Post
    Doesn't that still require root password? What prevents others from gaining root and changing your password?
    No, it doesn't require a password. It requires physical access to the computer and the sad truth is that once someone has physical access pretty much anything can be broken in to. You can of course password protect grub to make things a lot more difficult. But then the drive could be removed and mounted in another machine bypassing that protection.

    Encrypting your sensitive (or non-sensitive) data is the best protection but even that isn't 100%, maybe 99.99% which means that unless you have government or corporate secrets you're probably not going to be worth the effort.

    Quote Originally Posted by endaesha View Post
    okay so wait.. my system is currently in chrome os so then wha?
    Ah. I understood from your post that you were booting in to an already installed Ubuntu.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  10. #9
    Just Joined!
    Join Date
    Jun 2015
    Location
    Detroit, Michigan
    Posts
    6
    i installed it.. i just cant get back into it lol. ive been in chrome os like i can switch to the log in screen but i cant get past it.

  11. #10
    Just Joined! ugjka's Avatar
    Join Date
    May 2015
    Location
    Latvia
    Posts
    40
    Quote Originally Posted by endaesha View Post
    i installed it.. i just cant get back into it lol. ive been in chrome os like i can switch to the log in screen but i cant get past it.
    How did you install it?

Posting Permissions

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