177
Sekyuritee (lemmy.world)
top 50 comments
sorted by: hot top controversial new old
[-] Tanoh@lemmy.world 26 points 5 months ago

I know this is a meme, but security is not binary. It is not you either have 100% or 0%, it is always a sliding scale, and usually on the opposite side is convenience.

Encrypting your drive protects against someone stealing your computer or breaning into youe house while the computer is off/locked.

People like to trash people that write down their passwords on a post-it note and keep next to their computer. It is not ideal, but having a somewhat complex password written down protects a lot more against attacks over the internet than having "password". However, if others have physical access to the note then it is obviously very bad. Like for example in an office.

[-] ricecake@sh.itjust.works 8 points 5 months ago

Yup. The risk of someone breaking into your house and stealing your post-it note is vastly different from someone guessing your password, and the risk changes again when it's a post-it note on your work computer monitor.

One of the best things you can do with your critical passwords is put them on a piece of paper with no other identifying information and then put that piece of paper in your wallet. Adults in modern society are usually quite good at keeping track of and securing little sheets of paper.

I'm paranoid, so I put mine on an encrypted NFC card that I printed to look like an expired gift card to a store that went out of business. It's got what I need to bootstrap the recovery process if I loose all my MFA tokens (I keep another copy in a small waterproof box with things like my car title. It's labeled "important documents: do not lose" and kept unlocked so any would be thief feels inclined to open it and see it's worthless to them rather than taking the box to figure that out somewhere else. The home copy is important because there's vaguely plausible scenarios where I lose both my phone and wallet at the same time. )

Stealing my laptop and getting my stuff is a significantly larger risk than me leaving my computer on and unattended without locking the screen.

Passkeys are a good trend because they're just about the only security enhancement in recent memory that increases security and usability at the same time.

[-] blinfabian@feddit.nl 1 points 5 months ago

i work in IT at an office and i kid you not. some people really stick a post it with their full login to their screen. (not even their screen as they sit at different places every day)

[-] MonkeMischief@lemmy.today 1 points 5 months ago

It's like leaving cookies and milk out for Adam Jensen or J.C Denton ❤️ lol

load more comments (2 replies)
[-] Luminous5481@anarchist.nexus 23 points 5 months ago

Encrypt whole hard drive?
Yes.

Log in automatically?
Yes.

[-] illusionist@lemmy.zip 6 points 5 months ago
[-] Luminous5481@anarchist.nexus 1 points 5 months ago

That would be the easiest solution, since it's offered during install with many distros.

[-] bjoern_tantau@swg-empire.de 1 points 5 months ago

TPM or put a keyfile on the boot partition or into the initrd.

[-] Tundra@sh.itjust.works 5 points 5 months ago

this is the way

(blank kwallet password + autologin)

[-] VieuxQueb@lemmy.ca 2 points 5 months ago

I used to run as root until they made it pretty much impossible.

[-] saltesc@lemmy.world 2 points 5 months ago

This is what I do. As far as I'm concerned, there's my password and then there's the one that's a last "are you sure?" step before I sudo fuck shit up.

[-] bdonvr@thelemmy.club 1 points 5 months ago

Yep. I have an overkill password for the drive on boot and a secure but easier to type one as my user password to unlock from sleep or sudo.

[-] michaelmrose@lemmy.world 15 points 5 months ago

On a single user system which either hibernates or shuts fully down you might as well long in automatically after you type in your 16 character encryption pass phrase. A login screen does not in any way provide additional security. Note this doesn't actually prevent you from locking the screen and unlocking still requires your password.

[-] Diurnambule@jlai.lu 4 points 5 months ago

I join that my setup. Hibernate after 15min and disk encryption and autologin on boot, but password is asked when going out of sleep for the 15 first minutes.

load more comments (2 replies)
[-] Mikina@programming.dev 7 points 5 months ago

Is there any OS that allows this config?

At least with Linux, if I encrypt my hard drive, I have to enter my encryption password on every login, for some even during boot.

Not sure about Windows. I wpuldn't be surprised if you can have bitdefender on with auto login.

[-] Aurenkin@sh.itjust.works 6 points 5 months ago

From memory yes but the contents of your home directory are inaccessible until you enter your password via a popup. For whole drive encryption probably not.

[-] ArsonButCute@lemmy.dbzer0.com 2 points 5 months ago* (last edited 5 months ago)

I had configured this manually (incorrectly) in Arch a while back to have my home dir be on a separate encrypted drive.

Turns out the main drive didn't get the memo and still had a home folder which worked fine, I thought it was working so I promptly forgot about it. Meanwhile the encrypted drive (which had only ever been unlocked that day and never again) had maybe 10 files on it that I didn't even know it had until I swapped the drive into a different PC.

[-] srestegosaurio@lemmy.dbzer0.com 3 points 5 months ago

You can have FDE binded to the TMP and then inside that encrypted volume an encrypted home.

By doing that you only need to input your login password and get better security than the meme setup and other suggestions.

You would need, iirc (I am typing this from memory):

  • A TPM.
  • systemd-cryptenroll
  • Some PAM config for fscrypt or similar.

I know the steps but for NixOS only lmao.

[-] PumpkinEscobar@lemmy.world 3 points 5 months ago

Can do full disk encryption of root and auto-unlock with tpm, the auto-login is a separate thing and not necessarily the same password

[-] passepartout@feddit.org 2 points 5 months ago* (last edited 5 months ago)

You could configure the TPM to effectively store the LUKS key. User login is skippable. So yes, should be possible.

[-] deadcade@lemmy.deadca.de 2 points 5 months ago

There is a way, but no point in doing so. As such no OSes offer such an option out of the box. For file encryption to be of any use, you need there to be some kind of authentication before being able to access those files (like a password).

The easiest method would be to encrypt the entire drive, as modern Linux and Windows both support using the TPM for automatic unlocking. With that, set up standard user autologin and you've made the drive encryption useless.

[-] SorryQuick@lemmy.ca 2 points 5 months ago

Mine autodecrypts with a hardcoded password in a text file. I don’t really care about encryption right now, but the minute I do, it’s one file delete away.

[-] waigl@lemmy.world 1 points 5 months ago* (last edited 5 months ago)

The password for the hard drive encryption and the system login are two separate things, so, yes, this combination is easily possible. You'll have to input a password for system bootup, but not for logging in.

How advisable that combination is is another question entirely.

[-] markz@suppo.fi 1 points 5 months ago

You'll have to input a password for system bootup

Encrypted home dir, not the entire drive

load more comments (2 replies)
[-] Taleya@aussie.zone 6 points 5 months ago

"I know you're on holiday but can't log into the vpn and a third party tech i hired needs your password for the pfsense"

Actual words said to me last week. Hollyyy shit.

[-] 4am@lemmy.zip 5 points 5 months ago

I wish I could set it to auto-login to a Lock Screen so all my preferred stuff starts up and is ready when I get there, but my computer is still locked against anyone trying to steal it and get easy access to it

[-] michaelmrose@lemmy.world 3 points 5 months ago

You can literally do this. Just have a unit that locks the screen.

load more comments (2 replies)
[-] owsei@programming.dev 1 points 5 months ago

You can probably make your DE login in automatically, load the stuff, then log out

[-] shadowtofu@discuss.tchncs.de 4 points 5 months ago

One has to find the right balance between security and comfort, and this entirely depends on the threat model one has. Nowadays, I will always enable full-disk encryption on all of my devices, even if I then decide to store the keys in TPM and unlock the disk at boot.

I have at least 5 half-broken HDDs sitting around, completely unencrypted, I have no idea if they still work, but they are surely full of private data that I would like to have purged. I fear mechanical destruction might be the only solution for some of them, but just wiping them manually is more effort than doing nothing, so I guess they will still be around for some time. And with SSDs, there is no reliableway delete all data.

With encryption? Just delete the key and you are done.

The threat model changes in the future? Easy, the data is already encrypted.

[-] foggy@lemmy.world 3 points 5 months ago

With encryption? Just delete the key and you are done.

This is true. For now...

[-] BCsven@lemmy.ca 2 points 5 months ago

I thought there was a table method of "destruction". Like you delete or destroy the table of allocation. Even though the data is on the SSD, its not contiguous like HDD and so its spread into bits everywhere. However failing that, leave them unplugged (unpowered) and in 70°C plus heat, the bits will lose their electrons rapidly.

[-] Logical@lemmy.world 1 points 5 months ago

I have been trying to understand what it is that makes it impossible to reliably wipe an SSD, compared to an HDD. Why wouldn't filling the drive with 0s work?

[-] JP1@musicworld.social 2 points 5 months ago

@Logical @shadowtofu
The SSD controller does not overwrite the old physical location (unlike HDD).

It writes the new data to a different physical block.

The old block becomes “stale” but still contains your original data until the SSD decides to erase it later.

[-] Logical@lemmy.world 1 points 5 months ago

But if I fill a drive with nonsense data, whether SSD or HDD, shouldn't it be forced to write such data to all possible locations, thus overwriting the original data? Is am I misunderstanding something more fundamental about how this type of storage works?

[-] JP1@musicworld.social 1 points 5 months ago

@Logical Filling an SSD with zeros only affects the logical address space visible to your OS—it doesn't force the controller to erase every physical block. The old data remains in unmapped or retired areas until (or unless) the controller decides to erase it later, potentially allowing recovery with specialized tools. Some SSDs might even optimize by not physically writing zeros if they detect a full block of them, simply marking the space as erased without touching the hardware.

[-] Logical@lemmy.world 2 points 5 months ago

See what I'm still not getting though, is how there can still be unmapped or retired areas, if the drive has been filled with (meaningless) data? Let's say it isn't all zeros, but random data instead. Are there more physical blocks than is represented logically by the adress space exposed to the OS?

[-] lucullus@discuss.tchncs.de 4 points 5 months ago

On big flash memory you typically have more memory on the chips, than ia presented to the OS. Flash has significantly less write cycles, before the block breaks, so the controller monitors the health and won't use it anymore when it will soon fail. Instead it uses a block from its unused extra space. (Details might be different, I'm not sure about that). This way the lifetime of the SSD is significantly improved. SD cards do the same, I think.

So the data in the retired blocks will remain and cannot be overwritten by the OS. If they are encrypted and the keys deleted, that won't matter

load more comments (1 replies)
[-] nek0d3r@lemmy.dbzer0.com 4 points 5 months ago

I don't really bother encrypting my personal PC, there's just not much on there at all that I even store. My server is definitely LUKS encrypted, but it's a lot of effort for a very specific attack vector that I don't anticipate. There's things I'd be much more concerned about a burglar stealing than a storage device.

[-] milagemayvary@mstdn.social 2 points 5 months ago

@mycodesucks

Heh, I have done just this for a friend of the family on Linux mint Debian edition.
It works out alright but I always feel weird setting it up.

I had made a little mistake after attempting to try out the experimental Cinnamon Wayland desktop on said machine & failed.

... Then boot looped ... Because autologin was setup.

Tiny bit embarrassing. Oops. Better keep backup minimal CLI Linux installs to repair/restore on seperate partition but seperate drives are best.

[-] hemko@lemmy.dbzer0.com 2 points 5 months ago

I mean login automatically on boot but with encrypted drive is ok if you're the only user. If someone got your encryption password, they can get your data. The user password doesn't protect a shit

Now of course you want to still have auth when locking the pc

[-] communism@lemmy.ml 2 points 5 months ago

Just do full disk encryption + autologin. Done

[-] Allero@lemmy.today 1 points 5 months ago

My favorite is KDE asking for user password upon waking from sleep even if you have autologin enabled.

So, all you have to do to circumvent the login window is to reboot.

[-] Feathercrown@lemmy.world 3 points 5 months ago

Well, I suppose it protects your session

[-] otto@feddit.org 1 points 5 months ago

yeah I also have this enabled. With disc encryption that you have to enter on reboot, it makes sense

load more comments
view more: next ›
this post was submitted on 24 Dec 2025
177 points (97.8% liked)

linuxmemes

31681 readers
537 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS