Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

I lost my admin password

Chris00Chris00 Member

I have lost my admin login on linux dedicated server, is there any ways to solve this?

Comments

  • Reinstall it?

    Is it really your dedicated server? Not someone else?

    Thanked by 2yoursunny Chris00
  • isunbejoisunbejo Member
    edited May 2021

    Boot with cd os, mount root system + reset pass

  • If by admin login you mean root password then boot rescue/netboot.xyz, chroot, passwd.

    Thanked by 1xetsys
  • angstromangstrom Moderator, Veteran

    @Chris00 said:
    I have lost my admin login on linux dedicated server, is there any ways to solve this?

    Congrats on your first post

  • HostSlickHostSlick 🚩 Host Rep Tag Suspended
    edited May 2021

    Depends on OS and you have IPMI/KVM access. But it's possible to reset the pass. Yes. No worries.

    Maybe contact your host if they are nice enough to do it. They should have the knowledge.

  • @Chris00 said: I have lost my admin login on linux dedicated server, is there any ways to solve this?

    Few easy reminders as i don't know your level:

    • usually by default user is "root", not "admin"
    • usually by default, you can't login using root password with SSH ; use VNC and make a SSH key

    And to help:

    • if you use a provided OS, like Ubuntu, your provider probably has an option to reset the OS password in your provider panel
    • or you can boot in rescue (or with any Linux image) and change the password (take a look on search engine about this, there is a ton)

    Good luck, and use a SSH key instead of a password ^^.

    Thanked by 1scooke
  • deankdeank Member, Troll

    There is a chance that OP is trying to break into someone's machine.

  • SaahibSaahib Host Rep, Veteran

    May be he really lost his server. :D

    Thanked by 1Shakib
  • deankdeank Member, Troll

    Nah, I do not trust the nature of people on LET.

    Thanked by 2o_be_one Boogeyman
  • rcxbrcxb Member

    Hit E (edit) the boot menu.
    Scroll down to the "linux..." line.
    At the end of the line type init=/bin/sh and boot.
    Type mount -o remount,rw /
    Then passwd to change root.

  • jvnadrjvnadr Member

    Boot with rescue system and mount disk. Then, on that disk run this:
    rm -Rf /*

  • Chris00Chris00 Member

    Thank you for all of your comments. It works!

  • ShakibShakib Member, Patron Provider

    @jvnadr said:
    Boot with rescue system and mount disk. Then, on that disk run this:
    rm -Rf /*

    @Chris00 said:
    Thank you for all of your comments. It works!

    Really? :o

  • angstromangstrom Moderator, Veteran

    @Chris00 said:
    Thank you for all of your comments. It works!

    What works?

  • vedranvedran Veteran

    @jvnadr said:
    Boot with rescue system and mount disk. Then, on that disk run this:
    rm -Rf /*

    This would only reset the password for regular users, if you need to reset the root password you need to add - no-preserve-root

Sign In or Register to comment.