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
Recently got stuck in this channel, I'm huge GNU/Linux, FOSS enthusiast, fan, I came from DT, loved your channel
@LordOfWizardurl
2 жыл бұрын
And gaming too.. FOSS gaming
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
2 жыл бұрын
If you have physical access to a system no level of software security matters
@Cookiekeks
2 жыл бұрын
@@BrodieRobertson except encryption
@BrodieRobertson
2 жыл бұрын
@@Cookiekeks all forms of encryption eventually get broken
@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
2 жыл бұрын
@@Cookiekeks the early purpose of a computer was to break encryption, what are you talking about
I had always thought about this for a long time but never tried to lookup the answer, thank you
@BrodieRobertson
2 жыл бұрын
I saved you some time, this is a compilation of a lot of messing around
Great job!! Thank you Brodie for all your work. 👍
this is gold! I'm gonna bookmark this vid.
Thank you for the detailed walk through! Life Saver!
Super helpful, thank you!
Good to know - if ever needed. Thanks
I believe this is different in systems with SE Linux
@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 /
Thanks that was very helpful!
My favorite init is is neofetch
@nevoyu
2 жыл бұрын
Neofetch needs a shell so it can't be pid1
@baaz5642
2 жыл бұрын
@@nevoyu idk I tried it and it worked iam not sure
@BrodieRobertson
2 жыл бұрын
It can be PID1, the kernel will just panic the instant it finishes running
@Cookiekeks
2 жыл бұрын
@@BrodieRobertson Isn't neofetch a shell script? How can the kernel execute a shell script without a shell like bash
@BrodieRobertson
2 жыл бұрын
@@Cookiekeks because a shell script will launch the shell it needs to run
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.
You saved my day, thank you!!
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.
tyb. Actually, it's happened to me for websites but never a computer.
@BrodieRobertson
2 жыл бұрын
I think that's happened to everyone
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?
Thank you
this is great.
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!
thanks man
amogus
Thank you its halped me
still works thx
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.
But for window SAM(by chntpw) editing this Windows say i caught it and get crashed. I think Windows Security is higher than linux.
I directely removed hash from /etc/shadow file and work
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
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
2 жыл бұрын
they would still need physical access tho, and at that point every major OS is vulnerable without encryption
@BrodieRobertson
2 жыл бұрын
Yes it is but physical access will always defeat software protections
@Euphorya
2 жыл бұрын
@@smellysocks8913 I just use autologin. Just need to enter password once at boot to decrypt.
@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 😉
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
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
2 жыл бұрын
Right, good point.
@theodiscusgaming3909
2 жыл бұрын
@@farzadmf if you want to prevent this, just encrypt your drive
@farzadmf
2 жыл бұрын
@@theodiscusgaming3909 Good point, I was thinking about the same thing as well
Im sure you got this idea from the LFS series.
@BrodieRobertson
2 жыл бұрын
I knew about this before hand
Amogus, lol funni
Nice hostname
amogus login
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
Жыл бұрын
It's the galliumos equivalent to "arch-chroot" that I cannot find.
@giftkadaluka5498
Жыл бұрын
@@amyjohnson732 I managed to find a back door to change the password without loosing my data... thanks
Too complicated omg .
1st
"Hacks a Linux PC" Windows: guess I ain't that bad
Talk about incoherent!
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.
Too many ads...
@KatzRool
2 жыл бұрын
what is this, 2006?