Find the answer to your Linux question:
Results 1 to 7 of 7
Anybody how to gain root password in ubuntu version 6.06 bcoz I can't edit my other files with root permissions and I also disable my the sudoers and I also ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    20

    I lost my root password

    Anybody how to gain root password in ubuntu version 6.06
    bcoz I can't edit my other files with root permissions and I also disable my the sudoers and I also lock my grub...
    plz help me.........

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    how did you do all that?
    boot up from Ubuntu LiveCD, remove lock from menu.lst file.
    boot up in single user mode and reset password with 'passwd' command. i am not sure if 'passwd' command will work in this situation, but worth to try.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    20
    first I disable the sudoers second lock my grub then when I use su in the terminal I input my password my password was not accepted I don't know what happened I just type my password correctly....
    I did this just this afternoon.......

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    great ! remove look using LiveCD and enable sudoers in single user mode.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Aug 2006
    Posts
    20
    what do mean single user mode
    can you give me some steps to follow...

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    in GRUB screen, select Ubuntu title and press 'e'. select 'kernel' line, press 'e' again and add <space> 1 at the end of line. press 'Enter' key and press 'b' to boot up. Ubuntu will boot up in Single User mode.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,789
    Alternatively, boot the live CD, mount any partitions that you have in relevent locations. eg: / partition to /mnt/ubuntu /home to /mnt/ubuntu/home

    Then run:
    Code:
    chroot /mnt/ubuntu
    Then
    Code:
    passwd root
    and apply the new password.

    This is one reason to secure your box so that the system CANNOT boot off CD!
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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