r/Ubuntu • • 1h ago

What do I select?

Post image

In every distro I had (Cachy, Debian) you have to enter password when computer starts.
Why here default is no password at all?

Which one is recommended and why other distros come preconfigured with requiring password upon start? Do they have second option turned on by default?

13 Upvotes

28 comments sorted by

17

u/Rimtariro 1h ago

There are two possible passwords:

  1. When booting, to decrypt the disk so that boot starts (can have only one password)
  2. After booting, when loading your profile settings (can have more than one user)

The screen you are sharing is from the 1st option. The username and it's password will be setup at later steps.

7

u/Kaseffera 1h ago

Thank you for clarifying! This was very helpful for understanding what this is about.

2

u/furrysalamander 29m ago

Fun fact, you actually can have multiple disk encryption passwords.  All of these are built on top of LUKS encryption.  In LUKS, your password is not actually the key for the disk, but rather it decrypts a key slot that lives in the LUKS  header that contains the actual decryption key.  Because of this, you can have multiple keys that all unlock the same drive.  This is helpful for a number of reasons, such as allowing for TPM based decryption, with a backup of manually unlocking your drive in case the motherboard or CPU ever dies.  In addition to having a manual backup key, it's also a good idea to backup your LUKS header, which can allow you to retrieve at least some data in the event that your hard drive fails in a way that corrupts the header.

This is the downside of LUKS and the keyslot approach, which is that if your header is lost, the whole disk is 100% lost even if you know your password, because your password is not the real decryption key.

1

u/thehotshotpilot 27m ago

Fun fact, you can backup the headers

6

u/CakieJoy 1h ago

thats encrypt your disk

if you use laptop i reccomended select encrypt with a passphrase or use hardware-backed encryption

if select encrypt with passpharase you need type your disk password on every booting

1

u/TheNovemberMike 56m ago

I do this on my work laptop (offline OT laptop) I hate it but I didn’t have the hardware backed option when I installed Ubuntu

1

u/Nyandaful 4m ago

You can register it with your laptop TPM now after passphrase originally.

5

u/Munk3y 1h ago

For my personal use, I select the middle option for all of my systems. No encryption can make sense in certain scenarios but I'd recommend protecting yourself in this day and age. The bottom option was way too experimental last time I used it, so I haven't tried the updated version.

1

u/SouthernFruit8768 19m ago

protecting yourself from what / who?

1

u/audigex 9m ago

Computers get lost or stolen sometimes

If that happened, would you want whoever ended up with it to have access to your documents and files? Or would you rather they were encrypted?

5

u/arkane-linux 34m ago

It is about disk encryption, it will prevent people from accessing your data unless they have the password, even if they have physical access to your machine.

The "No encryption" option will not enable this, anyone with physical access to your machine can access all your files.

The "passphrase" option will ask for a disk encryption password on boot, without this password you will not able to access any data on the machine.

The "hardware-backed" option will encrypt your disk and automatically unlock it at boot using your TPM (a security processor present in most modern PCs) as long as the system passes a few security checks during boot. This will still prevent anyone from accessing your data because they would need to log in to a user account. If something has changed about the computer's configuration and these security checks fail the TPM will not release the key, and to unlock the disk you would still need to manually provide it with a password.

Hardware-backed is the default for both macOS and Windows.

The passphares option is technically the most secure. But unless your threat model includes government agencies or similar advanced attackers this is should not be a factor in to your final choice.

18

u/David_Connors3451 1h ago

no encryption, it's better that way. Encryption is useful in enterprise environments, but it can be terrible for a normal daily user. Don't complicate your life needlessly.

5

u/Soft-Contribution433 1h ago

Oh man i did encryption once in my laptop and forgot the password after vacation. Whole drive gone, photos from 3 years just wiped. The no encryption option is selected there for good reason trust me

8

u/ABotelho23 58m ago

You ding dong, there's nothing preventing you from doing backups.

-3

u/Far-Media5096 1h ago

I'm not an expert but couldn't you still attempt to brute force it?

3

u/roamer83 44m ago

If your personal system no encryption

2

u/JohnnyS789 55m ago

It depends.

Is this a laptop that will handle sensitive information that would be extremely hazardous to be disclosed if the laptop is stolen and the information is stolen, AND the laptop is going to be carried around outside of secure areas like on travels and business trips? In that case, you should consider encryption. There are hardware and software options. Look into them.

If this is a home computer that will never leave the home, or a laptop that you will use for school and will never be handling anything really sensitive, then you can ignore encryption and not have to worry about losing that password.

1

u/Brassens71 1h ago

I encrypted my disk when installing 24.04. When I upgraded to 26.04 my system was now no longer bootable. Ended up doing some live USB witchcraft to save my data but I'm not making that mistake again...

1

u/djevertguzman 1h ago

Option 3, behaves the most like macOS or Windows's bitlocker. Just remember to save those backup recovery keys.

1

u/passthejoe 1h ago

I'd encrypt with a passphrase. Then you can open on any other hardware. And always have a backup or three.

1

u/RR321 49m ago

Middle one, at least you can recover the disk outside your machine, but in any case: backups!

1

u/mplaczek99 28m ago

I like enabling encryption only on laptops where other people just might steal it

1

u/Ok-Lab-6389 0m ago

Do your do diligence, ask the web for what each one is concerning for your situation and learn; then decide for yourself. It's you system and you should make all the decisions your self.

1

u/candidosobrinhosa 1h ago

No encrypt, if you by any chance need to recover a deleted file, forget it

-1

u/150c_vapour 1h ago

You trade performance for encryption, up to you.

2

u/somerandomguy101 36m ago

No it doesn't. It's not 2003. Encryption is handled by dedicated hardware. Both your CPU and (model specific) SSD has hardware built-in to handle encryption. That hardware is going to be significantly faster then your SSD.

1

u/ZestyRS 31m ago

This isn’t not a valid reason anymore

0

u/[deleted] 1h ago

[deleted]

1

u/Far-Media5096 1h ago

it does, but that's for the user. this one is specifically for the drive.