r/OS_Debate_Club • • 1d ago

Linux's security model is less secure than windows. (Actual criticism, not just an umhinged pissed off rant)

Edit: im wasting my time here. this sub should just be renamed to r/LinuxCirclejerk. oh wait, that already exists.

Recently i posted a vitriol-filled rant about linux and its userbase, and realized i failed to articulate my frustration accurately. My mistake was mistaking the term "permissions" for security model. Its the security model of stock linux that genuinely pisses me off. It basically assumes you cant be trusted with access to the filesystem. 

I dont want to set filesystem permissions manually on a global scale, and id argue that in a way, linuxs securtity model is actually less secure than windows, because you have people doing what i was doing, using chmod/chown on literally everything because they dont feel like fucking with it, when it could just have per-action elevation with a uac prompt like windows that doensnt permanently modify permissions.

Then, you have the community with zero social awareness telling you why that opinion is wrong which of use to absolutely fucking no one. I dont have a problem with linux at the kernel level, its all of these shitty desktop environments, combined with the pretentiousness of the majoriy of linux users that drive me nuts. 

Not having permissions integrated with a per-action elevation system, and instead having to set everything manually, seems like a lazy and half-baked way to build an operating system. 

0 Upvotes

39 comments sorted by

4

u/AveugleMan 1d ago

I'd argue in the complete opposite sense. Having windows promoting you every single time if you want to use or delete something gets extremely old after a few years.

Windows also straight up won't allow you to delete some files and keys, no matter how hard you try.

Linux being a one and done permission change is way simpler, it just assumes you know what you're doing, which a lot of people don't. You're not supposed to use permission changes on Linux without knowing what they do, but people do, and then complain when they bork their install.

0

u/Tv_in_the_bg 1d ago

Thats what i mean, and windows will very much let you delete system-critical files, also under the assumption that you know what youre doing. The difference is that it does it with a gui and you dont have to type sudo or enter a password. 

1

u/LawfulnessNo8446 1d ago

You still haven't explained how it is less secure than windows. You make it less secure by changing permissions. It is owned by root for a reason. And that reason is to prevent an unprivileged user/process from modifying them. You weakened the system security. Linux is not less secure than Windows because you made a poor decision.

0

u/Tv_in_the_bg 1d ago

When a security mechanism repeatedly interferes with legitimate activities, users become motivated to circumvent it. That can result in worse security outcomes than a more convenient implementation would have produced.

My argument isn't that chmod 777 is a good security practice. It's that a well-designed desktop should remove the incentive to resort to it in the first place.

1

u/LawfulnessNo8446 1d ago

But using sudo or the gui pop-up is no different from the user account control pop-up in windows. You can argue that needing to use the terminal for sudo is less user friendly than Windows, but is is not less secure. You also shouldn't need to modify root owned files that often that sudo becomes an annoyance.

Heck, you can enable passwordless sudo if it bothers you that much.

2

u/MouseJiggler 1d ago

you have people doing whati was doing, using chmod/chown on literally everything

Lads, I deliberately broke the security system, and it's everyone's fault but mine!

1

u/Tv_in_the_bg 1d ago

At this point im convinced that you assholes are just incapable of being reaoned with. Stick your shitty OS up your ass. 

2

u/Sert1991 1d ago

IT's always the same users, they discover they're not as capable as they thought, they assume everyone is like them, and now they want to change the whole scene to suit their level instead of choosing something their level of capability, and it shows, especially with that sentence you pasted from them.

1

u/barnamos 1d ago

Yes getting frustrated with locking down access which is the definition of security and deciding not to certainly makes Linux less secure than Windows lol.

1

u/Tv_in_the_bg 1d ago

I wasnt really sure what else to put as a title, but i think you get the point im trying to make. Windows had this shit figured out 20 years ago with vista.

Also, i dont need my OS to protect me from myself. 

2

u/MouseJiggler 1d ago

As evident from your post, you do.

1

u/Tv_in_the_bg 1d ago edited 1d ago

Not really, and i still dont understand how changing permissions permenantly instead of per-action is more secure. I realize you arent supposed to modify permissions in that way, but i shouldnt even have to feel the need to do that. I think the underlying philosophy is fucking stupid. 

3

u/CurdledPotato 1d ago

“Sudo”, my dude. Elevate only as needed. There is a GUI version as well that shows a password prompt, but it’s up to the GUI app developers to invoke it.

1

u/Tv_in_the_bg 1d ago

 Aware of sudo. My issue isnt with using a terminal. It's being forced to abandon a perfectly functional graphical workflow to perform an operation that the graphical application should be capable of facilitating.

This shit is a recognized concept in security engineering called security friction. When a security mechanism repeatedly interferes with legitimate activities, users become motivated to circumvent it. That can result in worse security outcomes than a more convenient implementation would have produced.

My argument isn't that chmod 777 is a good security practice. It's that a well-designed desktop should remove the incentive to resort to it in the first place.

If you're already browsing a directory in a graphical file manager, with the source and destination visible, why should you have to open a terminal and manually reconstruct the operation you were just attempting? The file manager already has all the information it needs to request authorization. Case in point, its fucking stupid. 

2

u/CurdledPotato 1d ago

And I’m saying there exists a variant of “sudo” that shows a graphical password prompt that can be used to solve such a problem. It’s just that the GUI app developers have to actually use it.

1

u/pangapingus 1d ago

All current OSes face the same underlying issue that just rears its head in different ways: ambient authority. Look into capability-based systems like KeyKOS, Hydra, etc. as what computing could be without an assumption of ambient authority. Your rant is pretty low-level too, you're complaining about self-inflicted footguns which can happen in any OS, as if you can't give a printer driver SYSTEM rights on a Windows Server (yes I've seen this in the wild in MSP work). Ambient authority affects all traditional Windows, Mac, Linux, and Unix stacks; sure some of these OSes/distros allow for MAC/MAC-esque controls, allowlisting, etc. but these are bolted-on protections covering up the underlying problem.

1

u/Tv_in_the_bg 1d ago

The point is that i shouldnt have to shoot myself in the foot trying to fix a flaw that could have been fixed at the desktop level. 

1

u/pangapingus 1d ago

Again this is such a low-level concern compared to the main root issue of ambient authority. With capability-based systems you would only have what you need at minimum, all the time, in the first place.

"I dont want to set filesystem permissions manually on a global scale, and id argue that in a way, linuxs securtity model is actually less secure than windows, because you have people doing what i was doing, using chmod/chown on literally everything because they dont feel like fucking with it, when it could just have per-action elevation with a uac prompt like windows that doensnt permanently modify permissions."

chown-ing and chmod-ing 777 a file is the same end result as elevating a UAC prompt, it's just that the UAC prompt is ephemeral per access until a permissions change is made finally allowing you access. But in Linux this is what sudo allows you to do, also ephemerally. Also Linux inherently allows for a RO-filesystem + immutable-OS configuration off the bat whereas for Windows you have to pay for a DeepFreeze license.

1

u/tapo 1d ago

I'm still not sure what you are trying to do here.

For what it's worth Windows does have a better ACL system because NT was designed with a lot of learnings from VMS/Unix. Linux just copied Unix's permission model and other things like SELinux, namespacing, and capabilities were added later.

1

u/Tv_in_the_bg 1d ago

Yeah and that raises the question, during development, why did nobody stop and think "wait a second, this is kind of a pain in the ass from a ux perspective. We should fix this." Its something that could have been dealt with, but almost deliberately seems like it was left broken. 

1

u/tapo 1d ago

I mean I still don't know what you're trying to do. Could you describe the workflow?

1

u/Technical_Drink_846 1d ago

Agreed. The Linux kernel is obviously going to be secure but it's not designed to be an OS for running random software. UAC and firewall configuration is really simple on Windows and lets me know which apps are doing what. Try getting the average online Arch, Mint, or CachyOS user to configure a firewall or stop an app from accessing location of Bluetooth services. These users largely download random software to get a cool toolbar or something and and assume it's secure because it's either written in Rust or is "open source", which obviously means the code has been reviewed and is doing exactly what you think it is.

1

u/Tv_in_the_bg 1d ago

This might be the first rational response ive seen. And i agree with what youre saying, i guess my version of a good security model is not downloading random applications and running them with admin permissions. 

1

u/Technical_Drink_846 1d ago edited 1d ago

I don't even think there is a GUI for SELinux on Fedora. Ubuntu has AppArmor and it's pretty good but sill nothing like Windows. Arch is a jungle and there is nothing stopping a program from doing whatever it wants. Fedora doesn't even ship with a way to configure the firewall apart from editing a text file buried somewhere in /etc/. Last I used it I had to install firewall-cmd myself.

I was a package maintainer on Void Linux for a few years and it was a nightmare. Most people on Linux do just chmod 777 anything that doesn't work right or run it with sudo. Obviously Windows "spies" on me, but I turned off most permissions. I think after seeing the xz malware injection into the build system, you can't confidently say a Linux OS isn't spying on you. Nobody is actually auditing packages except for the employees at Canonical and Red Hat.

I decided I'd rather use Windows because when I download Steam I know it's a package from Valve. Chrome is a package from Google, and my OS and userland updates come from Microsoft and not some random guy. I'd describe the current Linux wave to being like your coworker who just bought a Doge Charger, despite not being a car guy, but he pretends to be. He still uses the car the same way as his old car, but he will tell you it's better than your Corolla that does all the same things.

1

u/Tv_in_the_bg 1d ago

Well said. And i appreciate the fact that you're coming from the perspective of a developer rather than your average user. 

1

u/LawfulnessNo8446 1d ago

So your argument is that Linux is less secure than Windows because you need to change ownership of files to your user instead of root before you can modify them?

What?

That's not a security flaw. Those files are owned by root for a reason, and you need to use sudo or root to modify them.

You also argue in other comments that it's really requiring the terminal to elevate to root that is the problem. I also fail to see how that is a security issue rather than a ux issue.

2

u/Sert1991 1d ago

His argument is: If the system doesn't give me a popup to allow things and handle everything for me, than the system is less secure than windows. If it gives user the capabilities to do more than windows, than it's less secure than windows, in a nutshell.

Meanwhile corporations use linux because of exactly that, because unlike the average user they need more security than windows, and with the fin graining of linux you can achieve higher levels than getting a popup to allow stuff.

Unfortunately this bullshit is paraded by even some developers nowadays, like the idiots who think unless Linux becomes completely like it's android variant, where everything is sandboxed and the user doesn't have a choice to modify that stuff, then it's not secure, QED.

1

u/Tv_in_the_bg 1d ago

Not quite. Im saying the lack of a popup option encourages people to fuck with permissions and use chmod/chown on everything instead of constantly using sudo commands. 

1

u/Tv_in_the_bg 1d ago

Security friction. Ive addressed all of these points in other comments. 

1

u/HunnyPuns 1d ago

I'm confused on a couple of levels here.

First what are you, a user, trying to work with on the file system that isn't already in your home directory?

Second, the Useless Authentication Component. Just like, all of it. Why the fuck is it there? You have access to certain files but they're kind of protected in some weird, magical fashion that doesn't make sense. Elevate your privileges and you get access to them. Or run whack whack localhost whack C$, and as long as your user has permission to work with the file, you can work with the file. Why couldn't we just work with the file if we had permission to do so?

Let's start with that and see where this goes.

1

u/Tv_in_the_bg 1d ago edited 1d ago

This all started because i couldnt move a file into /etc without using a sudo command. I dont want to have to open the terminal and use sudo every time i need to modify a protected directory, and neither does anyone else. Thats why im arguing that the linux security model is less secure, because most people including myself would rather just disable it than work with it. Its tedious and annoying. This is my computer, and if i brick my install by doing something stupid, thats my own fault. 

1

u/HunnyPuns 1d ago

That's literally like moving a config file into Program Files or Program Data. In that case UAC would act the same as sudo, except sudo you can call whenever you need it, and UAC is... Well it's UAC. Your irritation might be selective.

1

u/Tv_in_the_bg 1d ago

Having a yes/no dialog that pops up is a hell of a lot more convienent than having to use sudo every time. 

1

u/HunnyPuns 1d ago

Except it doesn't always pop up. Sometimes you navigate to the config file, right click, open with notepad, make your changes, save and... Oh, fuck you. You're not allowed to save there. Your permissions say you can, but fuck you anyways. Save to the desktop, copy the file in place, trigger UAC, file saves. Jobs done.

Or in Linux. Edit the file, file doesn't allow you to read or write to it. Exit your editor. Sudo !!. Make your changes and save the file. Jobs done.

3

u/Corona688 1d ago

even on windows, you don't have access to most files.

even on windows, chmod 777 is a stupid idea.

you simply do not understand what you are doing and are using the largest hammer to drive all nails 3 miles deep into the earth's core.

2

u/HairMouser 1d ago

I m sorry to say that but it s because you don t seem to understand the risk of the permission system you described, and the desktop environment in linux in a general way... there is so many different desktop environment and each has it s own particularity (and i can understand you don t want to spend time digging through them while hoping to find the one matching your needs...)

And in a general way: if you don t like linux don t use it, nobody cares, it s your machine, as long as you don t ask someone else to maintain it i don t see why you would want to install an os you clearly don t want to use.

For the pedantic "zero social awareness" of the community, it s unfortunately logical to get such response from a community heavily based on security or computer expert, it s not the community best known for their social skills with other people (and i clearly am counting myself in the lot by saying this)

Lots of us are into linux because it allows its users to do what they want with their computer and systems, and because we like to understand things. We don t want to relly on windows product to dictate what we should know or be allowed to do depending on the price we paid for their os...

It s normal some people "just want to use their computer" nothing really wrong with that, no need to piss on each other for this matter

1

u/Sert1991 1d ago

Unfortunately this is not how people reason nowadays.
We want to use linux, but we also want to turn into another windows with a different name so we can say we use linux but it will be like the thing we're comfortable with.

I mean, if you don't like it, use windows. Leave the other choices for the rest of us.

If you think Linux is not secure when the big corporation who have everything to loose use it and the internet runs on it, you already can spot a problem in your opinion based on the evidence at first glance.

1

u/knuthf 1d ago

All the distributions fail miserably here. Firstly, none of them use 'Groups'. ZERO use them. They use groups as 'roles', which is incorrect. Worse is Fedora, where there is just "me" no computer name, and a protected user called "root", but I can achieve the same thing by entering a password for the "sudo" command.

This must stop. Everyone must be set up as an administrator with their own UID that is not 0. "Me" cannot be UID=1. Then everyone must have a "user" that can be assigned differently to me. It is also very important that there is a 'netuser' that everyone else defaults to, unless they access this keyboard using their fingerprint. There are then three groups: Admin, Users and Network. The network can be the company LAN or the internet by default. I don't currently have any big projects or code repositories that must be kept confidential yet instantly accessible to the new groups as and when they need access to them. As the boss, that is my responsibility.

Unlike Windows, we have all the tools; we just have to use them.

1

u/Sert1991 1d ago

Because your opinion is wrong.
It's not that linux security model is wrong. IT's that it's different.
It's up to you to decide if you have the technical skills to maintain security on linux like the hundreds of companies that do it and run the internet on it, or not.

And if you decide that you don't have those skills, you can use a version of Linux that others do it for it, like Kubuntu/Ubuntu, redhat, or even more controlled: android.

Not everything needs to be locked down and made for the average user that doens't know how to manage stuff like Windows. That's why windows and mac exists, and that's why they're the most popular with the average user.
If you over estimate your skills and use an OS and Distro of it clearly made for people with higher skills, that's on you.

The companies that choose linux choose it exactly because of what you are criticizing it for, because it doesn't do shit like windows, because if you need extra security and you know what you're doing it it allows you to achieve it.