2

Is there a way to remove configuration profiles as root?

So far I have tried the following:

$ sudo su -
$ find / -name profile # trying in the following folder
$ cd /private/var/db/ConfigurationProfiles/Settings
$ chmod 777 com.apple.managed.PlugInKit.plist # operation not permitted
$ mv -f com.apple.managed.PlugInKit.plist com.apple.managed.PlugInKit.plist.old # operation not permitted

Any force moves, copies, removes, or chmods are not permitted even though I am an administrator. I was able to remove them manually in the UI a few months ago but the system admin disabled that feature awhile back and now I'm trying to remove the restrictions on the filesystem.

0
1

The profiles command gives you command line access to change profiles.

To remove a profile, use

sudo profiles -R -p identifier

To get the identifier of a profile if you don't have it already, find it in the list of profiles given by

sudo profiles -P

You can't mess around in /private/var/db/ConfigurationProfiles, only macOS itself can manage files in there.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .