Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 44

Thread: HOWTO: Oh no! I forgot my password!

  1. #21
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Oh no! I forgot my password!

    Nope -- the thing that plays the drums and prompts for your password is "GDM" (GNOME Display Manager)

    GRUB is the textmode thing that provides the boot menu (or the PRESS ESC TO SEE MENU countdown) the very first thing during bootup.
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  2. #22
    Join Date
    Sep 2007
    Location
    los angeles
    Beans
    152
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Unhappy Re: HOWTO: Oh no! I forgot my password!

    Jdong you said:
    4. Turn your computer on.
    5. Press ESC at the grub prompt.
    6. Press e for edit.
    7. Highlight the line that begins kernel ........., press e
    8. Go to the very end of the line, add rw init=/bin/bash
    9. press enter, then press b to boot your system.
    10. Your system will boot up to a passwordless root shell.
    CAUTION: This is a FULL ROOT SHELL! You can damage your system if not careful!
    11. Type in passwd <username>. Set your password.
    12. Type in reboot.

    In my world:
    Turn on
    see the Unix rebooting slider
    pressed esc
    see it reboot in text
    see the grub page
    pressed esc
    --Now I see a set of choices that includes 4 lines that all say kernel.
    but here I am supposed to press e, so I do
    then I choose that one that starts with kernel (very long line)
    press e
    add the text at the end
    see the prompt for root ((shiver))
    put in the exact text
    passwd<sam>
    then enter
    I get bash: syntax error near unexpected token 'newline'
    then I cant enter text any more.

    (sam is the user name)
    Turn computer off.
    Begin again.
    (this time it takes several tries till I can hit escape at the right time. I have to go for the keep hitting it till I see the unix slider before grub.)
    ...
    I try the password instead of passwd<sam> I do
    gooble12<sam>

    same result

    Would appreciate assistance.
    And Thanks In Advance.

  3. #23
    Join Date
    Sep 2007
    Location
    los angeles
    Beans
    152
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Oh no! I forgot my password!

    Quote Originally Posted by penguinv View Post
    Thanking you JDong for this last bit.
    And for being clear at it.
    OK one thing. What is GRUB? I inferred that when I am asked for my password on bootup that that is GRUB. But I am not certain of that.

    (I went to the Ubuntu IRC and the FUD was thick. But that is another post.)

    I won't make the sin of changing the thread and asking anything new
    and
    I see that this is the way I can change "who" (which username) is the "master admin" (the one who has the sudo password).

    I started out being "sam" and then realized that I wanted the group (who own the computer) to have the master password so I created an account for some future person "sadmin" then found out only my password worked for installing updates, not the sadmin account.

    I want to give them an admin account and the master password but not the one to MY account. --Yes I know they could find it but they are not that clever and "before I would leave" or anything, they should be able to always have the sudo-password.

    And that way I can just ditch my entire account and not have to fuss with the details.

    I have written this to check my thinking and to help others.
    I prolly could have said this more clearly.
    Thanks Jdong ultimate coffee master.

    PenguinV
    Los Angeles Newbie and very happy to be in GUIland Linux
    Update:
    I discovered that I was still in a functioning bash shell

    by typing something I knew was safe, ls

    so what happened was that my input- text was not being echoed after the first input.

    and inputing the same thing

    passwd<sam>
    or
    passwd <sam>

    gave the same error message.

  4. #24
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: HOWTO: Oh no! I forgot my password!

    There is no "master sudo password". By default sudo is configured to allow members of the admin group to use sudo with their OWN password. If you want someone else to have sudo access, just add them to the admin group.

  5. #25
    Join Date
    Oct 2007
    Beans
    1

    Re: HOWTO: Oh no! I forgot my password!

    Thanks for posting! Saves me from a reinstall... again

    What about if you forgot your user name as well? Should you create a new user with useradd?

  6. #26
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Oh no! I forgot my password!

    If you forgot your username, cat /etc/passwd and look for your username, or the user with ID 1000 (username:1000:1000:.....)
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  7. #27
    Join Date
    Feb 2007
    Location
    Sweden
    Beans
    68
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Oh no! I forgot my password!

    You're not supposed to leave the brackets, < and >.
    If you try without them I'm sure it'll work.

  8. #28
    Join Date
    Sep 2006
    Location
    New York, NY
    Beans
    129
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HOWTO: Oh no! I forgot my password!

    @penguinv: take out the brackets and it'll work.
    "One's style is in one's signature always" - Oscar Wilde

  9. #29
    Join Date
    Sep 2007
    Location
    los angeles
    Beans
    152
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Smile Re: HOWTO: Oh no! I forgot my password!

    - penguinv
    I got it working. I had changed the user name.

    I still wonder about these things.
    1. after the first line in the bash shell the input text is not echoed
    but the command I type in works just the same.
    2. There might be something (basic) about linux that I could read and get the <brackets dont count> and other valuable pieces of information for which I do not know enough to ask.

    To help others, these pieces of information were good.

    - psusi
    There is no "master sudo password". By default sudo is configured to allow members of the admin group to use sudo with their OWN password. If you want someone else to have sudo access, just add them to the admin group.
    ---- YES, I really needed to know that.

    - jdong
    If you forgot your username, cat /etc/passwd and look for your username, or the user with ID 1000 (username:1000:1000:.....)
    ---- Examining /etc/passwd revealed that
    the (human) user accounts are numbered starting with 1000

    - limpan
    You're not supposed to leave the brackets, < and >.
    If you try without them I'm sure it'll work.
    - haldean
    @penguinv: take out the brackets and it'll work.

    Thanks to all.

  10. #30
    Join Date
    Sep 2005
    Beans
    44
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: HOWTO: Oh no! I forgot my password!

    This isn't working for me.

    I get a black screen after the reboot and when I switch to another terminal view (Control-Alt-F1) I get a message akin to "No resume image, doing normal boot."

    But then it either just hangs there forever (if I appended to the line), and upon restart gives me the regular graphical login screen, or just immediately restarts in the regular login screen as well (if I delete the original line and replace it with the new line). Either way, the result is the same.

    Has anything changed in 7.10, is it my configuration (it is a brand new, clean install-- I must have set the password or username wrong at install), or am I doing something wrong here?

    Edit: Ah nevermind. Since it was a fresh-install, I realized I could just use recovery mode. Then I followed steps 11-12 to reset the password (sorry, no step 13 )
    Last edited by Linux BASHer; November 4th, 2007 at 02:44 PM.

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

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