Skip to content

Instantly share code, notes, and snippets.

@BrahimAfa
Forked from hitautodestruct/reset.md
Created January 28, 2022 11:04
Show Gist options
  • Save BrahimAfa/e64c6876048bcb54443c7cc98a9617ba to your computer and use it in GitHub Desktop.
Save BrahimAfa/e64c6876048bcb54443c7cc98a9617ba to your computer and use it in GitHub Desktop.
Reset root password on scaleway.com

Reset root password on scaleway.com

Source: https://community.online.net/t/reset-root-password-via-console/1724/3

I solved this problem, found a hint here: https://github.com/scaleway/initrd/tree/master/Linux 184.

Here is what I did:

  1. Edit the “Tags” field in the server definition and add “INITRD_POST_SHELL=1” as one (or the only) tag.
  2. Reboot the server
  3. Wait until you get a shell
  4. Run: chroot /newroot
  5. Change your password using passwd passwd root
  6. CTRL-d to resume booting.
  7. Test your new password.
  8. Remove “INITRD_POST_SHELL=1” from your tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment