Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > uk.comp.sys.mac > #143438

Re: Catalina, Gatekeeper

From richard@cogsci.ed.ac.uk (Richard Tobin)
Newsgroups uk.comp.sys.mac
Subject Re: Catalina, Gatekeeper
Date 2020-04-18 16:09 +0000
Organization Language Technology Group, University of Edinburgh
Message-ID <r7f8np$uc$1@macpro.inf.ed.ac.uk> (permalink)
References <r79tfj$4ga$1@macpro.inf.ed.ac.uk> <bf1b97fd-0a18-8e0c-c899-acef47faf279@scorecrow.com>

Show all headers | View raw


In article <bf1b97fd-0a18-8e0c-c899-acef47faf279@scorecrow.com>,
Bruce Horrocks  <07.013@scorecrow.com> wrote:

>On 16/04/2020 16:26, Richard Tobin wrote:
>> Will something like "xattr -d com.apple.quarantine bin/*" fix this?

Having installed Catalina on one of my Macs, the answer to this seems
to be "yes".  Doing the same to the tar file first also works.

>> Does it apply to shell scripts as well as binary programs?

>In Catalina, System Preferences -> Security & Privacy -> Privacy tab ->
>Full disk access or Files and Folders there will be an entry for 'sh' in
>the list of programs that have been granted that access.

That seems to be a separate issue.  It doesn't need full disk access
just to run a script.  But I needed to do that to /bin/bash just to be
able to run ls on my own Downloads directory!  (In an xterm.)

>The user can (if they have admin access) add sh to the list if it's
>missing. However, the add button displays the Applications folder and
>asks you to select an app so I'm not sure how you get them to navigate
>to /bin/sh.

Yes, that was a bit baffling.  You can do "open /bin" in a terminal
and then drag the shell into the System Preferences window.

>Plan B might be to add a 'read -p' statement at the beginning of your
>script which asks the user to wait and act on the Apple security dialogs
>before entering 'Y' to move on with the rest of the script.

I think (for the quarantining) I will do something like

  if xattr bin/something | grep -q com.apple.quarantine; then
    xattr -d com.apple.quarantine bin/*
  fi

-- Richard

Back to uk.comp.sys.mac | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Catalina, Gatekeeper richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-04-16 15:26 +0000
  Re: Catalina, Gatekeeper Tim Streater <timstreater@greenbee.net> - 2020-04-16 16:47 +0100
    Re: Catalina, Gatekeeper richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-04-16 15:55 +0000
      Re: Catalina, Gatekeeper Ian McCall <ian@eruvia.org> - 2020-04-16 17:19 +0100
        Re: Catalina, Gatekeeper richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-04-16 17:15 +0000
      Re: Catalina, Gatekeeper Chris Ridd <chrisridd@mac.com> - 2020-04-16 18:05 +0100
  Re: Catalina, Gatekeeper Bruce Horrocks <07.013@scorecrow.com> - 2020-04-17 21:14 +0100
    Re: Catalina, Gatekeeper richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-04-18 16:09 +0000

csiph-web