Use the systemsetup command-line utility on macOS Catalina 10.15
Learn about the changes to the systemsetup command in macOS Catalina 10.15 and later.
This article is intended for system administrators.
To use the systemsetup
command with either the -setremotelogin
or -setremoteappleevents
flag in macOS Catalina 10.15 or later, first give the parent process full-disk-access. You can grant full-disk-access manually or using Mobile Device Management (MDM):
Manually grant Full Disk Access: choose Apple menu > System Preferences, click Security & Privacy, then select the Privacy tab. Scroll down and click Full Disk Access, then add the parent process.
Use MDM: use the PrivacyPreferencesPolicyControl payload. Learn more
For more information about its usage, see the systemsetup(8) man page.