News for hackers. Stuff that matters.
Re:The new Microsoft Edge is out of preview by tsimionescu on Wednesday January 15, 2020 @05:01PM (#22059243)
Well, there is an extremely simple reason: because these tools are installed for all users, not just your own. Doing it any other way would be wasteful on an actual multi-user machine. But some tools do support it - both Chrome and Firefox can be installed without admin privileges. There is also the fact that Office and many other products rely on demons starting at boot time, which can only be installed with admin rights. The same applies to all popular Linux distributions (even more than on Windows, since you can provide a nice current-user only installer on Windows, but any common program package on Linux requires admin rights before you can even access it).

On the other hand, for most people this admin vs regular user separation is almost meaningless and provides little extra security. Sure, if I install malware as admin it will be harder to get rid of it, but except for that, it can hurt me just as much, since all of the files I really care about (documents, photos, game saves etc) are already accessible with my user, and any program running as my user can already connect to the internet and send information about what my user is doing (not to mention bother me with ads). Some of the really damaging ransomware that recently made the rounds didn't even require admin privileges, it simply encrypted data in some common user-owned folders, if I'm not mistaken (it probably did need some privilege escalation to spread, though, which is a big problem on office networks).

Re:The new Microsoft Edge is out of preview by zapzupnz on Thursday January 16, 2020 @06:00AM (#22063420)
> because these tools are installed for all users

So all they should require is to be dragged into the /Applications folder (or /System/Applications in Catalina). That's it.

That's how a macOS app should be installed. That should be the end of the process unless it needs to install kernel extensions (and even then, from Catalina onwards, such extensions should become userland extensions).

Re:The new Microsoft Edge is out of preview by tsimionescu on Friday January 17, 2020 @09:07AM (#22074683)
But how could a regular user be allowed to install something for other users? That would be a breach of security.
Re:The new Microsoft Edge is out of preview by xp84 on Saturday January 18, 2020 @01:15AM (#22082694)
The missing piece here:

Applications also don't need to be (and third party apps on most single-user systems arguably shouldn't be) in /Applications. Users can put apps wherever the heck they like (I keep mine in ~/Applications which even gets the same icon automatically if you create it).

Apple could really streamline this because all apps that can be drag-drop installed really belong in one's own home directory, where they'll be seamlessly migrated when you move to a new computer, or brought with you if you have a roaming profile. As it is right now, I just keep both Applications folders in my Finder Sidebar and remember that the bottom one is "mine."

In an ideal scenario, users could still drag apps to the "one" Applications folder and if they are not an Admin the app itself would actually be stored in a default-invisible ~/Applications. Then when you opened "/Applications" the system would show you the superset of both locations.

This is of course nearly exactly how the Windows Start Menu works except that it always had "installers" do the work of putting those program shortcuts in the respective directories, and only well-behaved apps ever asked which place you wanted apps installed.

Re:The new Microsoft Edge is out of preview by zapzupnz on Sunday January 19, 2020 @05:16PM (#22094506)
Technically, an application bundle can be located anywhere on a Mac; there is no installation process, they’re self-contained and always have been.

The question of how a regular user could be allowed to install something for all users in this fashion, placing the app bundle in the /Applications folder, is no different than when using an installer: ask for an administrator password.

Re:The new Microsoft Edge is out of preview by contextfree on Wednesday January 15, 2020 @07:25PM (#22060424)
"Doing it any other way would be wasteful on an actual multi-user machine."

On Windows at least, UWP apps are deduplicated across all users on the same system so when user #2 installs the same app already installed by user #1, it will just point to the same existing shared instance of the app's files. I don't know much about MacOS but I'd guess there's a similar packaging system. These systems also incorporate sandboxes which address the other problems you mentioned in your last paragraph.

The problem is just when the OS teams can't convince other developers (even ones inside the same company in Microsoft's case) to actually use their packaging and sandbox systems.

Re:The new Microsoft Edge is out of preview by dragonwriter on Friday January 17, 2020 @09:10AM (#22074702)
> Well, there is an extremely simple reason: because these tools are installed for all users, not just your own. Doing it any other way would be wasteful on an actual multi-user machine.

It wouldn't be wasteful if I didn't want to install it for the other users, which I might not.