Tap to unmute

Reset Password On Any Linux Distro (No Root Needed)

  Рет қаралды 24,957

Brodie Robertson

Brodie Robertson

Күн бұрын

Пікірлер: 86
@nonetrix3066
@nonetrix3066 3 жыл бұрын
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 3 жыл бұрын
If you have physical access to a system no level of software security matters
@Cookiekeks
@Cookiekeks 3 жыл бұрын
@@BrodieRobertson except encryption
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
@@Cookiekeks all forms of encryption eventually get broken
@Cookiekeks
@Cookiekeks 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 3 жыл бұрын
@@Cookiekeks the early purpose of a computer was to break encryption, what are you talking about
@emdirtyyo1827
@emdirtyyo1827 3 жыл бұрын
Recently got stuck in this channel, I'm huge GNU/Linux, FOSS enthusiast, fan, I came from DT, loved your channel
@LordOfWizardurl
@LordOfWizardurl 3 жыл бұрын
And gaming too.. FOSS gaming
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 жыл бұрын
I had always thought about this for a long time but never tried to lookup the answer, thank you
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
I saved you some time, this is a compilation of a lot of messing around
@markring40
@markring40 3 жыл бұрын
Great job!! Thank you Brodie for all your work. 👍
@gonl5047
@gonl5047 3 жыл бұрын
this is gold! I'm gonna bookmark this vid.
@Cyber_Lanka
@Cyber_Lanka 3 жыл бұрын
I believe this is different in systems with SE Linux
@MrRenanwill
@MrRenanwill 3 жыл бұрын
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 /
@ygiagam
@ygiagam 3 жыл бұрын
Good to know - if ever needed. Thanks
@baaz5642
@baaz5642 3 жыл бұрын
My favorite init is is neofetch
@nevoyu
@nevoyu 3 жыл бұрын
Neofetch needs a shell so it can't be pid1
@baaz5642
@baaz5642 3 жыл бұрын
@@nevoyu idk I tried it and it worked iam not sure
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
It can be PID1, the kernel will just panic the instant it finishes running
@Cookiekeks
@Cookiekeks 3 жыл бұрын
@@BrodieRobertson Isn't neofetch a shell script? How can the kernel execute a shell script without a shell like bash
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
@@Cookiekeks because a shell script will launch the shell it needs to run
@seventhgreeter5416
@seventhgreeter5416 3 жыл бұрын
Super helpful, thank you!
@jongeduard
@jongeduard 2 жыл бұрын
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.
@pablokote
@pablokote 2 жыл бұрын
Thanks that was very helpful!
@rohlilpsenicny6418
@rohlilpsenicny6418 2 жыл бұрын
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?
@xaeroshadow
@xaeroshadow Жыл бұрын
Thank you for the detailed walk through! Life Saver!
@AnzanHoshinRoshi
@AnzanHoshinRoshi 3 жыл бұрын
tyb. Actually, it's happened to me for websites but never a computer.
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
I think that's happened to everyone
@slay3rgamingyt
@slay3rgamingyt 3 жыл бұрын
You saved my day, thank you!!
@Rushtallica
@Rushtallica 7 ай бұрын
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.
@asswhole4195
@asswhole4195 3 жыл бұрын
Thank you
@jongeduard
@jongeduard 2 жыл бұрын
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.
@gihanrx
@gihanrx 3 жыл бұрын
thanks man
@jescis
@jescis 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!
@wChris_
@wChris_ 3 жыл бұрын
Im sure you got this idea from the LFS series.
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
I knew about this before hand
@apexneuron8109
@apexneuron8109 3 жыл бұрын
"Hacks a Linux PC" Windows: guess I ain't that bad
@farzadmf
@farzadmf 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
Right, good point.
@theodiscusgaming3909
@theodiscusgaming3909 3 жыл бұрын
@@farzadmf if you want to prevent this, just encrypt your drive
@farzadmf
@farzadmf 3 жыл бұрын
@@theodiscusgaming3909 Good point, I was thinking about the same thing as well
@0xbinarylol
@0xbinarylol 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.
@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 2 жыл бұрын
It's the galliumos equivalent to "arch-chroot" that I cannot find.
@giftkadaluka5498
@giftkadaluka5498 2 жыл бұрын
@@amyjohnson732 I managed to find a back door to change the password without loosing my data... thanks
@karnalunea1122
@karnalunea1122 3 жыл бұрын
this is great.
@sjalvmordsvalsen
@sjalvmordsvalsen 3 жыл бұрын
amogus
@PitBuII
@PitBuII 7 ай бұрын
still works thx
@0xbinarylol
@0xbinarylol 2 жыл бұрын
I directely removed hash from /etc/shadow file and work
@simoninc
@simoninc Жыл бұрын
Thank you its halped me
@KSPAtlas
@KSPAtlas 3 жыл бұрын
Nice hostname
@mirzaiscandle
@mirzaiscandle 3 жыл бұрын
amogus login
@dragonskunkstudio7582
@dragonskunkstudio7582 3 жыл бұрын
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.
@gamertechuni
@gamertechuni 3 жыл бұрын
Amogus, lol funni
@liamjewell62
@liamjewell62 3 жыл бұрын
1st
@dyroblesmercedes
@dyroblesmercedes 3 жыл бұрын
Too many ads...
@KatzRool
@KatzRool 3 жыл бұрын
what is this, 2006?
@opentoreason1975
@opentoreason1975 Жыл бұрын
Talk about incoherent!
@smellysocks8913
@smellysocks8913 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 3 жыл бұрын
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 3 жыл бұрын
they would still need physical access tho, and at that point every major OS is vulnerable without encryption
@BrodieRobertson
@BrodieRobertson 3 жыл бұрын
Yes it is but physical access will always defeat software protections
@Euphorya
@Euphorya 3 жыл бұрын
@@smellysocks8913 I just use autologin. Just need to enter password once at boot to decrypt.
@smellysocks8913
@smellysocks8913 3 жыл бұрын
@@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 😉
Easily Setup Your Wacom Tablet Under Linux
14:38
Brodie Robertson
Рет қаралды 49 М.
Memory Safe Languages DO NOT PREVENT MEMORY LEAKS
23:42
Brodie Robertson
Рет қаралды 23 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
How To Reset A Forgotten Password On Linux
13:04
DB Tech
Рет қаралды 20 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 180 М.
Linux Kernel Crisis Luckily Averted In Time
11:36
Brodie Robertson
Рет қаралды 40 М.
ThePrimeagen On Running Linux
9:40
Tech Over Tea
Рет қаралды 299 М.
Distrobox Is Basically A Linux Subsystem For Linux
16:42
Brodie Robertson
Рет қаралды 43 М.
Making Simple Linux Distro from Scratch
11:51
Nir Lichtman
Рет қаралды 216 М.
Windows & macOS can't do this, but Linux can!
15:55
The Linux Experiment
Рет қаралды 1 МЛН
Why Are Arch Linux Users So TOXIC?
12:32
Eric Murphy
Рет қаралды 576 М.
UwUntu Linux - The Operating System for Weeaboos (oh boy)
8:50
Michael MJD
Рет қаралды 1,2 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН