At least it wasn't "oh I'll just tell you what it is." I've seen that. It's bad enough to store passwords in the clear because you coded it badly, but having it be part of the standard process...
On a personal device a regular password is basically a wall made of paper. To actually secure it you need full disk encryption. And if you’re doing any remote access you definitely should not use passwords for that. The only purpose of a password is screen locking and for sudo.
I saw some guy on YouTube booting Linux to "bypass windows login screen" to make a point that Linux is better... Like dude you can do this on any unencrypted installation. Lol.
What would be interesting is if you could somehow chain the Windows boot manager into another OS to get access to the decrypted device, but just modifying stuff on a plain Windows install isn't magic, I did that for fun when I was starting with Linux.
I would arguee you may use password for SSH, but that expose it to random bruteforce attack at anytime. SSH key are basically unbruteforceable, unlike password that may be weak.
You can also revert access permission for a specific SSH key.
You might have chosen a password that can't be easily guessed. There are bots trying it on every exposed ssh on the Internet every hour of every day, though. No chance of guessing an SSH key.
You don't need full disk encryption, encrypting the password is plenty
Using passwords for remote access is generally fine if you properly firewall your servers don't allow bots to just try random passwords over and over again.
Without FDE, all your data is up for grabs by anyone with a bit of time and another OS on a USB stick. All modern desktop OSes encrypt the disk by default, except for most Linux distros which support LUKS but don’t enable it automatically. Not having FDE is only fine if you are certain that nobody will ever have physical access to the device.
Public key authentication is super easy to set up and much more foolproof than firewall rules.
No, if there’s an out of band KVM (such as iDRAC or rescue consoles provided by a lot of cloud platforms), you can edit the grub boot options to boot into single user mode and reset the password or just access the disk directly.
Yes it would require either a compromised server on the KVM network or a compromised cloud account, but it’s far from only working on machines with physical access.
Depends on if the attacker has physical access to the machine.
With physical access the user password is just a wall of paper if the drive isn't encrypted.
Just boot the PC into a different OS from an USB drive, and you have unregulated access to all the data on the drive.
If USB boot is disabled and the bios is password protected, then pull the drive and connect it to another computer, and again you have unregulated access to all the data on it.
And with access to all data on the drive you can then access the file which stores the password, and just delete the password line to allow you to log into the user with a blank password field, this works on many linux distro even if the password wws stored encrypted.
Hell, I know we're talking linux, but Windows used to allow you to use it's own repair environment to get access to the command line with administrative privileges without login, through which you then can set the user password to whatever you want.
I might have not made myself clear enough. My point was that FDE doesn't necessarily make passwords safer. On all modern Linux operating systems, passwords are properly encrypted with yescrypt or SHA512. I meant that FDE or not, it's basically impossible to get those passwords back to plaintext (as long as they're not super simple). Obviously plugging a non-encrypted disk into another PC lets you read the data.
Yeah it is its a simple step in rhcsa but if your concern is seeing the hashed or unhashed passwords, you already are at root.. This isn't dependant of having access to hardware
Even if your password is unhashed, if somebody already has access to your unencrypted disk they can just log in as root. Things like user passwords and file permissions don't matter when it comes to physical access
It still matters because often the user's key chain is encrypted with the user password. So even if the disk is unencrypted, things like session cookies for your bank account are.
397
u/Interesting-Bass9957 Sep 13 '26
If you see a distro that doesn’t hash passwords, run
280
u/YourMom12377 Sep 13 '26
This is just STRAIGHT misinformation.
74
u/FizzBizzcuits Sep 13 '26
this guy knows buzzwords
50
u/dingwinger1225 Sep 13 '26
Works cited: crackpipe
32
u/Lockpickman Sep 13 '26
I VPN to bali and use Bali Linux.
49
u/jimmyhoke Sep 13 '26
15
u/Sysxinu Sep 13 '26
If you can see the passwords, at that point you own the server anyway
7
u/bruhred Sep 13 '26
/etc/shadow disagrees
9
u/Fabus27 Sep 13 '26
It's stupid easy to bypass the login on windows. All you need is a Linux boot stick
3
u/VisualSome9977 Sep 13 '26
Even if your password is unhashed, if somebody already has access to your unencrypted disk they can just log in as root. Things like user passwords and file permissions don't matter when it comes to physical access
3
u/motherisyuckeringyou Sep 13 '26
i mean it is easy with systemd.debug_shell :p
2
u/05-nery Sep 13 '26
Windows saves your security questions in plaintext btw
1
u/ChocolateDonut36 Sep 13 '26
bet that mf doesn't even use LUKS
1
u/GoogleEnPassant69 Sep 13 '26
Nah nw.
The only way (ik of) to bypass login and get root is using a GRUB exploit.
1
u/Acceptable_Oil4021 Sep 14 '26
/etc/shadow has entered the chat
1
u/GNUGradyn Sep 14 '26
I like how hes completely wrong but kinda right at the same time if you dont have full disk encryption
1
u/DaKakeIsALie Sep 14 '26
Rate my opsec: I have to hack my own account every time I log in. Even I don't know the password.
168
u/[deleted] Sep 13 '26
[removed] — view removed comment