Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At least macos has file access permissions.
 help



You're referring to [Sandboxing] Mandatory Access Controls [0]. Windows doesn't implement MAC in the same way, instead using Mandatory Integrity Controls [1].

[0] https://developer.apple.com/library/archive/documentation/Se...

[1] https://learn.microsoft.com/en-us/windows/win32/secauthz/man...

Windows implements ACLs in a far more granular way than macOS and most other Unicies, however (with the exception of Slowaris).


Windows can implement these things as much as they like, but if you paste a command into CMD.exe, it can access your files with no popup like MacOS gives you.

Yes, same thing will happen on macOS.

macOS does prompt for permissions when e.g. Terminal tries to access Documents.


Comparing to DOS or what? No one runs Win10/11 on FAT now, while NTFS has access permissions and ACLs.

I remember that Win32 apps on Windows 10 and 11 can do whatever they want with the users personal files. Has that changed?

In Win, access to files are controlled by ACL when NTFS is used (dating back to NT 3.1 with NTFS). So it depends on which user runs a process.

Basic hygiene is very simple: never run as Administrator. Create and use a regular user or poweruser group user. It's similar to a regular linux practice. Use Administrator account when needed only.


GP is talking about isolation inside the current user. Recent macOS versions ask before allowing a program to access files inside Documents, Desktop, etc. Whether that helps or not is debatable, but it’s not quite the same as what Windows ACLs do out of the box. To achieve the same on Windows, one would have to run the program as a different user to which they’d selectively grant access to the folders inside their profile.

You can enable controlled folders on Windows: https://learn.microsoft.com/en-us/defender-endpoint/controll...

It's not enabled by default, though. Enabling it by default would probably break just about every Windows program out there and like UAC on Vista, everyone would turn it off immediately.


You can create a separate user, but even a user in the administrators group doesn't have an admin token until elevation.

If you trust yourself to not blindly click OK on every UAC prompt, a single user account in the admin group is fine.


> never run as Administrator.

Computer asks for password. I type in password.

Admin access prompts are honestly a joke even on macOS. The source is completely opaque.


Win32 Apps can access anything you can access and also read out some text fields from apps you have running, via accessibility APIs.

What does that even mean? NTFS file access permissions (35 years old at this point) are far more powerful than 1970s-era Unix permissions model.

It's referring to the fact that Terminal doesn't have free access to all your files and folders, despite what the traditional file access perms say.

Windows has this too, but it's off by default. I forgot what it's called, that's how often it gets used.

He’s talking about sandboxing and permissions prompts



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: