Using 'diskutil' to 'resetUserPermissions'

I am using a previous method to fix slow performance of my iMAC computer, but the 'string' diskutil resetUserPermissions /'id -u' now returns the following:

"Incorrect number of parameters

Usage:  diskutil resetUserPermissions MountPoint|DiskIdentifier|DeviceNode UID

Reset the permissions of a user home directory.

Ownership of the affected disk is required."

How can I fix this ?

Have I used an incorrect 'string' regarding spaces and other characters?

What are the implications (security) if I just close the Terminal Box ?


Posted on Jul 4, 2019 5:46 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 4, 2019 8:05 PM

Check out this article. From the example in the article the command uses back tics (found on the tilde "~" key) and not regular apostrophes around the "id -u" portion of the command. Compare them here:

`  back tic
'  normal apostrophe


So it should like like this:

diskutil resetUserPermissions / `id -u`



Similar questions

2 replies
Question marked as Top-ranking reply

Jul 4, 2019 8:05 PM in response to pamela542

Check out this article. From the example in the article the command uses back tics (found on the tilde "~" key) and not regular apostrophes around the "id -u" portion of the command. Compare them here:

`  back tic
'  normal apostrophe


So it should like like this:

diskutil resetUserPermissions / `id -u`



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using 'diskutil' to 'resetUserPermissions'

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.