Mac OSX Sierra : Don’t Have Permissions To Edit File : Solved

by admin on July 14, 2017

From the Apple Support Knowledge base :

 

Reset permissions

If the issue occurred after changing the permissions of items in your home folder, follow these steps to reset the permissions:

From the Finder menu bar, choose Go > Home. Your home folder opens.
Choose File > Get Info. An Info window for your home folder opens.
If the “Sharing & Permissions” section at the bottom of the window isn’t open, click the triangle in that section to open it.
If the Lock button at the bottom of the window shows a closed lock lock , click the lock and enter an administrator name and password.
Click the Action menu in the bottom corner of the window, then choose “Apply to enclosed items.” Click OK to confirm the action. A progress bar appears at the top of the window.
When the progress bar completes, open the Terminal app from the Utilities folder of your Applications folder.
Paste or type this command in Terminal, then press Return:

diskutil resetUserPermissions / `id -u`

On U.S. keyboards, the ` character is just above the Tab key. After entering the diskutil command, if Terminal says that permissions reset on user home directory failed (error -69841), enter chflags -R nouchg ~, then enter the diskutil command again.

When the process completes, quit Terminal.

 

Leave your comment

Required.

Required. Not published.

If you have one.