Find the answer to your Linux question:
Results 1 to 4 of 4
Hej in the Forum I have just installed Gentoo for the first time. I have installed it on my USB like USB Gentoo 2007.0 install | USB Pen Drive Linux ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    T@M
    T@M is offline
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2

    Question USB GENTOO :: no root password


    Hej in the Forum

    I have just installed Gentoo for the first time.
    I have installed it on my USB like USB Gentoo 2007.0 install | USB Pen Drive Linux shows. This works, but, and there is a but. I have no root password, been trying to look around the net, but most of the help I cut get there seems Tecknobable to me.
    Is there a way to set the root password, fx. by editing etc/shadow, how? Ive been looking at http://www.linuxforums.org/forum/lin...-password.html and this seems good, but sinse its my first Linux Im sort of lost, PLZ: HELP!

    The @ngel Man

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Boot up in Single User mode ( add single at the end of kernel line in GRUB Menu ) and it will drop you at command line prompt. Execute passwd command and set new root password.
    Code:
    passwd
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    T@M
    T@M is offline
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2
    GRUB Menu wod bee "boot:", So I write "gentoo single"?
    Still starts up with the "Welcome : Username" option.
    And still asks for current password...

    T@M

    Ps. It say Authentication token manipulation error.
    Pps. USBGentoo is the equivelent to the LiveCD
    Last edited by T@M; 09-12-2008 at 12:57 PM. Reason: More info given

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You can reset password using LiveCD.

    Let say, /dev/sda1 is /boot, /dev/sda2 is /.
    Boot up from LiveCD, execute this
    Code:
    mkdir /mnt/gentoo 
    mkdir /mnt/gentoo/boot
    
    mount /dev/sda2 /mnt/gentoo
    mount /dev/sda1 /mnt/gentoo/boot
    mount -t proc none /mnt/gentoo/proc
    chroot /mnt/gentoo /bin/bash
    passwd
    exit
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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