Reset Password On Any Linux Distro (No Root Needed)

Ғылым және технология

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.

Пікірлер: 87

  • @emdirtyyo1827
    @emdirtyyo18272 жыл бұрын

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

  • @LordOfWizardurl

    @LordOfWizardurl

    2 жыл бұрын

    And gaming too.. FOSS gaming

  • @nonetrix3066
    @nonetrix30662 жыл бұрын

    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 жыл бұрын

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

  • @Cookiekeks

    @Cookiekeks

    2 жыл бұрын

    @@BrodieRobertson except encryption

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

    @@Cookiekeks all forms of encryption eventually get broken

  • @Cookiekeks

    @Cookiekeks

    2 жыл бұрын

    @@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 жыл бұрын

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

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars2 жыл бұрын

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

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

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

  • @markring40
    @markring402 жыл бұрын

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

  • @gonl5047
    @gonl50472 жыл бұрын

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

  • @xaeroshadow
    @xaeroshadow Жыл бұрын

    Thank you for the detailed walk through! Life Saver!

  • @seventhgreeter5416
    @seventhgreeter54162 жыл бұрын

    Super helpful, thank you!

  • @ygiagam
    @ygiagam2 жыл бұрын

    Good to know - if ever needed. Thanks

  • @Cyber_Lanka
    @Cyber_Lanka2 жыл бұрын

    I believe this is different in systems with SE Linux

  • @MrRenanwill

    @MrRenanwill

    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 /

  • @pablokote
    @pablokote Жыл бұрын

    Thanks that was very helpful!

  • @baaz5642
    @baaz56422 жыл бұрын

    My favorite init is is neofetch

  • @nevoyu

    @nevoyu

    2 жыл бұрын

    Neofetch needs a shell so it can't be pid1

  • @baaz5642

    @baaz5642

    2 жыл бұрын

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

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

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

  • @Cookiekeks

    @Cookiekeks

    2 жыл бұрын

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

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

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

  • @jongeduard
    @jongeduard2 жыл бұрын

    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.

  • @slay3rgamingyt
    @slay3rgamingyt2 жыл бұрын

    You saved my day, thank you!!

  • @Rushtallica
    @RushtallicaАй бұрын

    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.

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi2 жыл бұрын

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

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

    I think that's happened to everyone

  • @rohlilpsenicny6418
    @rohlilpsenicny64182 жыл бұрын

    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?

  • @asswhole4195
    @asswhole41952 жыл бұрын

    Thank you

  • @karnalunea1122
    @karnalunea11222 жыл бұрын

    this is great.

  • @jescis0
    @jescis02 жыл бұрын

    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!

  • @gihanrx
    @gihanrx2 жыл бұрын

    thanks man

  • @0x7f2c
    @0x7f2c2 жыл бұрын

    amogus

  • @simoninc
    @simoninc11 ай бұрын

    Thank you its halped me

  • @PitBuII
    @PitBuIIАй бұрын

    still works thx

  • @jongeduard
    @jongeduard2 жыл бұрын

    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 Жыл бұрын

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

  • @sonuaryan5287
    @sonuaryan5287 Жыл бұрын

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

  • @smellysocks8913
    @smellysocks89132 жыл бұрын

    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 жыл бұрын

    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 жыл бұрын

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

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

    Yes it is but physical access will always defeat software protections

  • @Euphorya

    @Euphorya

    2 жыл бұрын

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

  • @smellysocks8913

    @smellysocks8913

    2 жыл бұрын

    @@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 😉

  • @farzadmf
    @farzadmf2 жыл бұрын

    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 жыл бұрын

    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 жыл бұрын

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

  • @farzadmf

    @farzadmf

    2 жыл бұрын

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

  • @wChris_
    @wChris_2 жыл бұрын

    Im sure you got this idea from the LFS series.

  • @BrodieRobertson

    @BrodieRobertson

    2 жыл бұрын

    I knew about this before hand

  • @gamertechuni
    @gamertechuni2 жыл бұрын

    Amogus, lol funni

  • @SFSAtlas
    @SFSAtlas2 жыл бұрын

    Nice hostname

  • @mirzaiscandle
    @mirzaiscandle2 жыл бұрын

    amogus login

  • @giftkadaluka5498
    @giftkadaluka54982 жыл бұрын

    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

  • @cryptoninjaz
    @cryptoninjaz Жыл бұрын

    Too complicated omg .

  • @liamjewell62
    @liamjewell622 жыл бұрын

    1st

  • @apexneuron8109
    @apexneuron81092 жыл бұрын

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

  • @opentoreason1975
    @opentoreason197511 ай бұрын

    Talk about incoherent!

  • @dragonskunkstudio7582
    @dragonskunkstudio75822 жыл бұрын

    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
    @dyroblesmercedes2 жыл бұрын

    Too many ads...

  • @KatzRool

    @KatzRool

    2 жыл бұрын

    what is this, 2006?

Келесі