ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    OSX Shell Error Operation Not Permitted

    IT Discussion
    apple osx quarantine shell bash scripting security troubleshooting brew
    1
    2
    713
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by DustinB3403

      So while I'm working on getting more Apple devices configured I realized that I had to make a change to my shell script. So I lazily went and opened the shell script with TextEdit on OSX Mojave.

      Once the changes are made and saved a "quarantine attribute" can (read this as does) get added to the file.

      To confirm if this attribute is added to your file run xattr -l /file/path/file.ext

      To remove the attribute run xattr -d com.apple.quarantine /file/path/file.ext

      Obviously you'll need to use your file path and extension which in this case for me was /Volume/USB/Brew/brew-acct.sh

      Hope it helps for anyone else who has to deal with Apple

      1 Reply Last reply Reply Quote 2
      • DustinB3403D
        DustinB3403
        last edited by

        Just used this again today, as another script I have had this attribute.

        Not sure when the attribute was written to the script though. But it's working now.

        This is the full error.

        /bin/sh: bad interpreter: Operation not permitted
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post