Skip to main content
Solved

Can't repair disk permissions in macOS Sierra

  • September 13, 2016
  • 6 replies
  • 43 views

Forum|alt.badge.img+2

I have the macOS Sierra GM installed on a VM and any time I run the command:

sudo jamf fixPermissions -verbose

I get an error:

Fixing Permissions...
 verbose: Error executing command: (
    "/usr/libexec/repair_packages",
    "--repair",
    "--standard-pkgs",
    "--volume",
    "/"
)

I'm currently on JSS 9.96.1472575603.c and running that same command works on 10.11

Best answer by ClassicII

The repair_packages binary is not in the /usr/libexec folder on 10.12.

6 replies

Forum|alt.badge.img+5
  • New Contributor
  • 53 replies
  • September 13, 2016

I'm running JSS 9.81 and when I run the command on my GM of macOS Sierra, I only get "fixing permissions" and immediately, a new command prompt. There is no error message when in verbose mode. I assume it failed as well.

Beginning with OS X 10.11, permissions repair is no longer necessary as they are protected with SIP. I'll try it on a 10.11 machine out of curiosity.


RobertHammen
Forum|alt.badge.img+28
  • Esteemed Contributor
  • 1027 replies
  • September 13, 2016

This works on 10.11.x, haven't tried it on 10.12 yet:

/usr/libexec/repair_packages --repair --standard-pkgs --volume /


Forum|alt.badge.img+20
  • Valued Contributor
  • 193 replies
  • Answer
  • September 13, 2016

The repair_packages binary is not in the /usr/libexec folder on 10.12.


Forum|alt.badge.img+8
  • Contributor
  • 118 replies
  • October 31, 2016

@ClassicII Ok the package is not in /usr/libexec .

Great but that is not a solution..

we are running JSS 9.96 and the last enrollment policy is fixing disk permission. And this error pops up. So as far as this goes, JSS is not setting this function up correctly and it needs te be addressed as I cannot change anything within the Casper Suite to change this. |(other than disabled the Fix Disk Permission)

Edit: It is not working in Mac OS Sierra! El Capitan has no problems.


Tangentism
Forum|alt.badge.img+10
  • Honored Contributor
  • 147 replies
  • November 23, 2017

For MacOS Sierra, there is an undocumented terminal command that will repair user permissions that I found on Apples Support Notes.

diskutil resetUserPermissions / `id -u`

Forum|alt.badge.img+3
  • New Contributor
  • 6 replies
  • July 3, 2020

@Tangentism

Have tried running this from Jamf? I was wondering if I should remove u -id when running from jamf.