Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    change password for root

    Reply
    bunanson | # 1 | 2010-01-16, 04:33 | Report

    Very interesting. Upgrade to PR1.2009.51-1, and restored backup, everything worked, so far, upon SSH, "...authentication failed.", password has been changed, or password has NOT been restored.

    no sweat, do some guessing work, it turned out, it used the generic one, "rootme"

    Anyhow, just in case, whatever reason you need to change your password for root, but does not know the password, you can do this, it does NOT require you to know the password, very strange (?)

    xterm
    sudo gainroot
    passwd
    type a new password
    re-type the new password

    password changed.

    I still puzzled by the fact, that you do not need to know the password in order to change to new password. Witchcraft.

    bun

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to bunanson For This Useful Post:
    ezcola

     
    fatalsaint | # 2 | 2010-01-16, 04:35 | Report

    Root is never asked for the existing password when changing a password because as root - linux does not question you. What root says, linux does. Which is why having root is both incredibly dangerous, and powerful.

    Sudo gainroot is configured to not prompt the user for a password to, naturally, "gain root". Normally, sudo WOULD ask for a password.. however this was intentionally configured not to both because there is no passwords on the device by default... and it's simply easier.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fatalsaint For This Useful Post:
    bunanson

     
vBulletin® Version 3.8.8
Normal Logout