Reset Password On Any Linux Distro (No Root Needed)

Поділитися
Вставка
  • Опубліковано 4 сер 2024
  • Losing your access to your user account on Linux can be really frustrating but luckily resetting that lost password is actually incredibly easy but the process slightly changes depending on the bootloader you're using at least for the easy approach
    ==========Support The Channel==========
    ► $100 Linode Credit: brodierobertson.xyz/linode
    ► Patreon: brodierobertson.xyz/patreon
    ► Paypal: brodierobertson.xyz/paypal
    ► Liberapay: brodierobertson.xyz/liberapay
    ► Amazon USA: brodierobertson.xyz/amazonusa
    ==========Resources==========
    Arch Iso: archlinux.org/download/
    =========Video Platforms==========
    🎥 Odysee: brodierobertson.xyz/odysee
    🎥 Podcast: techovertea.xyz/youtube
    🎮 Gaming: brodierobertson.xyz/youtube
    ==========Social Media==========
    🎤 Discord: brodierobertson.xyz/discord
    🎤 Matrix Space: brodierobertson.xyz/matrix
    🐦 Twitter: brodierobertson.xyz/twitter
    🌐 Mastodon: brodierobertson.xyz/mastodon
    🖥️ GitHub: brodierobertson.xyz/github
    ==========Time Stamps==========
    0:00 Introduction
    0:50 Important Caveats
    1:23 Kernel Parameters
    1:55 Using Grub
    3:56 Using Systemd-boot
    6:04 Live CD
    10:47 Resetting The Password
    12:06 Outro
    ==========Credits==========
    🎨 Channel Art:
    All my art has was created by Supercozman
    / supercozman
    / supercozman_draws
    #Linux #LinuxTutorial #LinuxDistro
    🎵 Ending music
    Music from filmmusic.io
    "Basic Implosion" by Kevin MacLeod (incompetech.com)
    License: CC BY (creativecommons.org/licenses/b...)
    DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase I may receive a small commission or other compensation.
  • Наука та технологія

КОМЕНТАРІ • 86

  • @nonetrix3066
    @nonetrix3066 2 роки тому +35

    I've only had something like this happen once I just used chroot on a Arch iso, also this goes to show how easy it is to break into most Linux systems if you don't secure them in some way

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +41

      If you have physical access to a system no level of software security matters

    • @Cookiekeks
      @Cookiekeks 2 роки тому +10

      @@BrodieRobertson except encryption

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +15

      @@Cookiekeks all forms of encryption eventually get broken

    • @Cookiekeks
      @Cookiekeks 2 роки тому +3

      @@BrodieRobertson can't follow you. How would they get broken? They are literally mathmatically impossible to break, except maybe with quantom computers one day, but that's just speculations

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +11

      @@Cookiekeks the early purpose of a computer was to break encryption, what are you talking about

  • @emdirtyyo1827
    @emdirtyyo1827 2 роки тому +7

    Recently got stuck in this channel, I'm huge GNU/Linux, FOSS enthusiast, fan, I came from DT, loved your channel

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 2 роки тому +9

    I had always thought about this for a long time but never tried to lookup the answer, thank you

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +4

      I saved you some time, this is a compilation of a lot of messing around

  • @markring40
    @markring40 2 роки тому +9

    Great job!! Thank you Brodie for all your work. 👍

  • @gonl5047
    @gonl5047 2 роки тому +7

    this is gold! I'm gonna bookmark this vid.

  • @Cyber_Lanka
    @Cyber_Lanka 2 роки тому +7

    I believe this is different in systems with SE Linux

    • @MrRenanwill
      @MrRenanwill 2 роки тому +2

      Its almost the same. After login into bash you will need to:
      1) At the bash prompt, load the SELinux policy with /usr/sbin/load_policy -i
      2) Mount the root filesystem read-write with mount -o remount,rw /

  • @seventhgreeter5416
    @seventhgreeter5416 2 роки тому +3

    Super helpful, thank you!

  • @xaeroshadow
    @xaeroshadow Рік тому

    Thank you for the detailed walk through! Life Saver!

  • @ygiagam
    @ygiagam 2 роки тому +5

    Good to know - if ever needed. Thanks

  • @baaz5642
    @baaz5642 2 роки тому +9

    My favorite init is is neofetch

    • @nevoyu
      @nevoyu 2 роки тому +2

      Neofetch needs a shell so it can't be pid1

    • @baaz5642
      @baaz5642 2 роки тому +1

      @@nevoyu idk I tried it and it worked iam not sure

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +4

      It can be PID1, the kernel will just panic the instant it finishes running

    • @Cookiekeks
      @Cookiekeks 2 роки тому +2

      @@BrodieRobertson Isn't neofetch a shell script? How can the kernel execute a shell script without a shell like bash

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +3

      @@Cookiekeks because a shell script will launch the shell it needs to run

  • @slay3rgamingyt
    @slay3rgamingyt 2 роки тому +2

    You saved my day, thank you!!

  • @pablokote
    @pablokote Рік тому +2

    Thanks that was very helpful!

  • @jongeduard
    @jongeduard 2 роки тому +1

    9:30 You can just run lsblk -f. The -f parameter adds filesystem info. So that you exactly know which one is the "vfat" of the bootloader (ESP), which one is the swap and which one is the EXT4 / Btrfs / whatever.

  • @jescis0
    @jescis0 2 роки тому

    Can the keyboard be an issue or the shell? Because even after doing your suggestions I still can't login! Because I'm getting the same message from the gui login and the getty login!

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 2 роки тому +5

    tyb. Actually, it's happened to me for websites but never a computer.

  • @rohlilpsenicny6418
    @rohlilpsenicny6418 2 роки тому +1

    For some reason when i get to the shell to reset the password my keyboard just freezes, even when it worked just a second ago in grub. Anyone knows what could be the problem?

  • @Rushtallica
    @Rushtallica 2 місяці тому

    Hi. On Garuda, I had to edit under advanced options, already had the 'rw', but then added the 'init=/bin/bash' at the end of the line, and then after following another video that only showed how to reset root user, used your method to reset my username password, as well. Thank you.

  • @karnalunea1122
    @karnalunea1122 2 роки тому +2

    this is great.

  • @asswhole4195
    @asswhole4195 2 роки тому +2

    Thank you

  • @gihanrx
    @gihanrx 2 роки тому +2

    thanks man

  • @0x7f2c
    @0x7f2c 2 роки тому +7

    amogus

  • @PitBuII
    @PitBuII Місяць тому

    still works thx

  • @sonuaryan5287
    @sonuaryan5287 2 роки тому

    But for window SAM(by chntpw) editing this Windows say i caught it and get crashed. I think Windows Security is higher than linux.

  • @simoninc
    @simoninc Рік тому

    Thank you its halped me

  • @jongeduard
    @jongeduard 2 роки тому +1

    I tried booting directly with a shell as my init system for fun now, but it does not work for me on my desktop system due to a very basic problem: My keyboard does not respond. :(
    Even pluging it out and pluging it in again does not work. :(
    Probably I would need to to fiddle with certain USB in my motherboard UEFI settings.
    Though in VirtualBox this trick works for me as well.
    Let's say that I still prefer the boot-from-another-system way of doing, preferably an arch based system with arch-chroot. And note that Manjaro also has it's manjaro-chroot script, that does even more work (probably more than you want, I have not used it yet).
    Virtual machines are the easiest though: You can hang any virtual disk from one VM into another as another drive, and then fix it in onother system. Although you have to be somewhat cautious if you have duplicate file system UUIDs (possible if you have cloned VMs), especially with Btrfs.

  • @sonuaryan5287
    @sonuaryan5287 2 роки тому

    I directely removed hash from /etc/shadow file and work

  • @SFSAtlas
    @SFSAtlas 2 роки тому +1

    Nice hostname

  • @gamertechuni
    @gamertechuni 2 роки тому +2

    Amogus, lol funni

  • @wChris_
    @wChris_ 2 роки тому +1

    Im sure you got this idea from the LFS series.

  • @farzadmf
    @farzadmf 2 роки тому +1

    Nice video, thank you, but now I'm worried because changing the password seems to be too easy if a person somehow gets access to your computer, no hurdle or antyhing for them, just change the password and log in! 😮

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +5

      If you have physical access to a computer you don't even need to change the password, you can just unplug the drive and then mount it on a different system.

    • @farzadmf
      @farzadmf 2 роки тому

      Right, good point.

    • @theodiscusgaming3909
      @theodiscusgaming3909 2 роки тому +1

      @@farzadmf if you want to prevent this, just encrypt your drive

    • @farzadmf
      @farzadmf 2 роки тому +1

      @@theodiscusgaming3909 Good point, I was thinking about the same thing as well

  • @giftkadaluka5498
    @giftkadaluka5498 2 роки тому

    Hie please help I have gallioum OS on my chromebook forgot my password and username... How can I go about it to reset it

    • @amyjohnson732
      @amyjohnson732 Рік тому

      It's the galliumos equivalent to "arch-chroot" that I cannot find.

    • @giftkadaluka5498
      @giftkadaluka5498 Рік тому

      @@amyjohnson732 I managed to find a back door to change the password without loosing my data... thanks

  • @smellysocks8913
    @smellysocks8913 2 роки тому +3

    isn't this a major security risk?? if i can do this on my computer. what stops me for doing this on some other computer that ain't mine?? not that i would, but just wounding from a security viewpoint....

    • @smellysocks8913
      @smellysocks8913 2 роки тому +2

      I never bother to encrypt my OS, but now i really considering it. cuz this is way to easy. but its the inconvenience of typing another password :-/ but if i think about it i have done this before, so i did know about it. installed arch, and forgot my user password. then i booted to arch usb, mounted drives and reset the password.

    • @smayansahu1070
      @smayansahu1070 2 роки тому +4

      they would still need physical access tho, and at that point every major OS is vulnerable without encryption

    • @BrodieRobertson
      @BrodieRobertson  2 роки тому +3

      Yes it is but physical access will always defeat software protections

    • @Euphorya
      @Euphorya 2 роки тому +2

      @@smellysocks8913 I just use autologin. Just need to enter password once at boot to decrypt.

    • @smellysocks8913
      @smellysocks8913 2 роки тому +4

      @@Euphorya yes, i did that today, installed arch cinnamon with encryption😉 have installed arch 100 times, but never with LUKS encryption. (So I learned something new today :-) and guess what? I forgot my my root password during install. So I needed to chroot into my install, and that too was not like normal procedure. Lucky i did not forget my crypt password. So new experience, new knowledge 😉

  • @mirzaiscandle
    @mirzaiscandle 2 роки тому +2

    amogus login

  • @apexneuron8109
    @apexneuron8109 2 роки тому +2

    "Hacks a Linux PC"
    Windows: guess I ain't that bad

  • @liamjewell62
    @liamjewell62 2 роки тому +4

    1st

  • @opentoreason1975
    @opentoreason1975 Рік тому

    Talk about incoherent!

  • @dragonskunkstudio7582
    @dragonskunkstudio7582 2 роки тому +1

    I'll pay someone to make a distro.
    I want to use a distro that I can enjoy but everytime there are bugs that never get fixed nor can I fix them. Why can't I just pay for a distro that works for a non coder like me... More like Linux coder.

  • @dyroblesmercedes
    @dyroblesmercedes 2 роки тому +2

    Too many ads...

    • @KatzRool
      @KatzRool 2 роки тому +1

      what is this, 2006?