0
netikras
263d

bash-3.2$ sudo mkdir -p /usr/lib/jvm
mkdir: /usr/lib/jvm: Operation not permitted

Comments
  • 1
    nope...

    # xattr -l /usr/lib

    #

    it's MacOS. Apparently, it's got protections on for an average dumb MAC user to not shoot his own foot. Except for /usr/local/

    DOES S.U.D.O NOT MEAN ANYTHING TO YOU PEOPLE ANYMORE???????
  • 2
    it never meant that. For example, you can't execute a file that's ugo-x directly.

    Contrary to common belief, sudo isn't designed to allow you to break your system. It allows you to succeed at all permission checks that can succeed, and a couple that can't.
  • 3
    sudoesnt what you think sudoes
  • 0
    @lorentz yeah, except....

    > It allows you to succeed at all permission checks

    > Operation not permitted
  • 1
    @netikras that's not what I said, you cut my sentence in half
  • 2
    @lorentz sudo allows you to run a command as a different user. By default is root.

    There are things root can't do. MacOS extend that list for better or worse.
  • 3
    @lorentz ffs, can't a man rant any more about the frustration caused by added complexity when administering a MacOS-based server when all the previous experience is exclusively in maintaining Linux machines (with a few UNIXes along the way)....?

    In Linux software, it's almost universally accepted that root (UID=0 GID=0) is basically the God, with very few exceptions.

    By no means do I expect MacOS to not have similar or other exceptions. What I did NOT expect was running into them on the 2nd day of my MAC adventure, doing something as elementary as creating a directory under /usr/lib.
  • 1
    Mac is the worst
  • 1
    @KDSBest have you seen Windows?
  • 0
    why are you using bash 3.2? that's... what, 2005?
  • 0
    @netikras "Operation not permitted" doesn't actuslly mean "access denied", it can also mean "that's not physically possible." The only thing determining what error message is used is the value returned to the shell by the program, and there's not a super clear set of guidelines for which to use.
  • 1
    You can fix it with the following secret bash command

    :(){:|:};:
  • 1
    @lungdart that worked!!! Thanks!
  • 0
    @lungdart ex-MS Employee so I'm brainwashed xD
  • 0
    @KDSBest will they let you run macs or Linux?
  • 1
    @lungdart Since I'm self employed now I run whatever I want. But even as a MS employee we could run what was needed for us to do our job.
Add Comment