Mac /

AllowForever

#!/bin/bash

# change mac os permissions to allow access where granted forever, instead of
# just for one month

SCA=~/Library/Group\ Containers/group.com.apple.replayd/ScreenCaptureApprovals.plist

defaults read "$SCA" | sed -nre 's/.*"(.*)" = ".*".*/\1/p' | \
  xargs -I {} defaults write "$SCA" "{}" "9999-01-01 00:00:00 +0000"

# Verify
defaults read "$SCA"