I want to make Linux my main OS. I’ve used Windows for decades. Since Vista or 7, the Windows security model is this, from what I understand:

  1. unprivileged programs have limited/no ability to do scary things to your computer. they might be able to read some data, but it’s not going to implant malware in the boot sequence for Windows.
  2. if a program wants escalation, it triggers a UAC popup and the user has to accept it. Remote programs cannot accept UAC on a physical person’s behalf. Escalated programs have admin level control and can do the scary things.
  3. As with any OS, there may be privilege escalation vulnerabilities that escalate (1) into (2).

I’ve only had Windows malware a few times since Win7, and the entry point was fairly avoidable. (Running a sketchy EXE, and a possible drive-by malware install via an advertisement. I could never prove the latter.)

I have never run a password on my Windows machines.


On any system, physical access is game over.


On Linux, the password is paramount. I’ve tried to understand the security model and I keep failing. Synthesizing from arch wiki

SSH

Equivalent to local physical access as the user. If it’s a sudoers or root account, it can do scary things. Not a threat if ssh is disabled or well secured (password or key pairs).

If a network has a well configured firewall (on the router), it should block ssh requests from outside the network unless the admin specifically wants SSH outside the network.

As with any OS, there may be bugs that allow remote access outside of SSH.

Local login / password prompts to physical users

Without a password, you can’t escalate to root and install new software. Some software, often dealing with hardware (smartctl) requires sudo/root to run.

Encrypted drives

Passwords can decrypt drives if they are encrypted.

Keyrings

Some DEs (KDE) offer a ‘keyring’ that stores passwords. It’s locked/encrypted with a password, usually the same as the login password.


So what am I missing? Is Windows + UAC + no password secure? What is Linux protecting us from by using passwords?

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    4 hours ago

    Thats fine until it isn’t.

    Remember all the small folk people the government or other powerfull institutions fucked over in unjust ways for a wide range of reasons (sometimes down to personal grudges other times completely random)?

    Yeah, it would be super easy to put some incriminating files on your computers and lock you up for years. Your grandma would be really sad.

    Also on linux you can set everything to passwordless in polkit/sudoers or a blank password - it doesn’t actually force you and I’ve done that where it made sense (not on a PERSONAL computer)

    • booty [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 hours ago

      If the government wants to fabricate a reason to prosecute me they’ll just bring some drugs to my house, the idea that they would go in with the plan to plant incriminating files on my computer (instead of just lying that there were incriminating files / showing a completely fake computer???) and then be foiled by a fucking password box and go “damn, he’s too clever for us, I guess we have to let him go” is just BEYOND ridiculous