Repair Disk Permissions in Mac OS Sierra, High Sierra, Mojave, Catalina and above via Command Line
HTML-код
- Опубликовано: 11 сен 2024
- We all miss the ability to Repair Disk Permissions in the Disk Utility Application in Mac OS X.
Here is a command line command that will allow you to get that functionality back.
The command is below. You can cut and paste it into Terminal to complete the command:
diskutil resetUserPermissions / `id -u`
Please Like, Comment, Subscribe and Share! We release videos often to help you get the most out of your Apple devices!
Let us know if the video helped you in the comments below! If you have any suggestions on topics we should cover, please also put them in the comments below.
Thanks for watching!
Gemsbok Website: www.gemsbok.ca
Very helpful. I don't know why it was so hard to find simple and clear instructions like this online. Thank you!
what operating system were you able to fix this on? thanks.
Went crazy for almost 2 hours and then came upon this video worked perfectly!! Thank you
How do you do this for an external drive!?
I haven't done it yet, but if I fail, it won't be your fault. Your instructions were all that I could have wanted or expected. I might add that, years ago, I was having problems with some of the websites I regularly visited. I blamed it on those #$^&%#@*^!!! websites, and it was more than a YEAR later that someone told me that maybe it was a PERMISSIONS. problem He was right and thinking about that just now made me think that it might be PERMISSIONS again. That's why I''m here. Thanks again for your help.
how to do this for an External Drive. Thanks
Yeah that would be nice. If possible? The current Mac disk utility is a mess! I ran “first aid” on a 4TB external HD this morning, it was just acting odd,. Anyway, this First Aid made the drive an unstable mess. Only claiming “back up drive now, error found.” Finally after 45 min I can now see the files on this drive, but it’s now only “read only.” (Smh!!) changing permissions or “fixing them “ not an option anymore unless there is a terminal command? I’ll have to back up GBs of stuff to another smaller drive...then reformat this now read only drive I guess. At least I have that option but this is silly! 😒 not the first time, I’ve had multiple Mac Externals simply change to “read only” out of the blue.
@@acjunior72 hey, did you figure out an easier solution to this? The same thing happened to me except all files aren't copying; it says "The operation can’t be completed because an unexpected error occurred (error code -8058)." So I can't even reformat my drive because i risk losing all my data :(
@@riyaduggal Pleaseeeeeee let me know if you have found a solution to this. I am in the same situation. Thanks
@@acjunior72 Pleaseeeeeee let me know if you have found a solution to this. I am in the same situation. Thanks
AWESOME!!! Thank you. I'm not happy that Apple removed this tool. I used to use it once a week to fix my permission back in earlier versions of the mac OS X. Great video here. Now I know how to fix my permissions again.
Amazing- I spent hours trying to do this - simple quick and easy instructions-
Thank you!!!!
It's 2021, I have Catalina, and this still works. Thanks!!!
thank you for this! been driving me nuts since they removed it from the gui!
I like to know how to get permission to use my iMac hard drive. This would never happen if Steve was still alive.
Thank you!!!! lost a lot of sleep over this issue.... reinstalled my entire OS and that didn't do it. Should have come to your video first!
Glad it helped
Yeah baby! This fixed an ongoing Mac to Mac sharing issue - very happy. Thanks!!
Absolutely brilliant - this fixed my Chrome browser virus instantly. Very grateful!
Still didn’t work for me. Do you suggest deleting my os and reinstalling?
thanks for making this short & sweet.... and not waffling on!! great video 👍🏻
I closed the tab but looked through the history just to give you a thumbs up
Thanks amillion sir!!! You saved me sooooo much time and headaches I couldn’t find it on Big Sir, and it solved my problem with system giving me error every time I need to duplicate the folder. Thanks again!!!😊😊😊👍👍👍
Thank you very much! I couldn't launch Garageband due to permissions issue and your solution did the job!
How would you use this same command but target disk2 or something other than the primary?
Thank you dealing with SBOD on an older iMac 2012 with Catalina. It’s still running after 10 minutes then i got the SBOD again it’s back running. Hoping this fixes things. Next step to try is fixing permissions & reinstalling the OS which i don’t want to do.
Man, I love you)
I have spent the whole day for the solution.
You are a life saver i haven't been able to bounce my projects out of Logic Pro X at all i have done several different methods to try and fix this issue even had apple tech support on the phone screen sharing my computer and he couldn't help me fix it either. THANK YOU FOR THIS VIDEO IM SUBBING THIS CHANNEL NOW!
You're welcome! I very glad it helped and thanks for subbing!
Thank you for the information. The background music was very distracting for me. I got through it but the experience was unpleasant. Thanks again for the content though.
I have Catalina, didn't work!! I can't mount disk2 (external drive). Can I have some help, thank you.
Thanks, this repair a problem I had with Sierra asking passwords on renaming or trying to trash files. My first mac was a SE 30 and I never have problems that I cannot fixe until the last OS versions. Removing the possibility by Apple was obviously a mistake or a voluntary omission to sale their newer stuff. Thanks a thousand time. My trusted “Repair permissions” Is back and when you see online that newer OS dont need it is obviously false.
That seemed to mostly work, i received the following error:
Some user permissions have been reset
Error: -69841: Permissions reset on user home directory failed
Underlying error: 1: Operation not permitted
I have a lot of old cds with images etc. written in HFS+ format that is not recognized on my iMac running Cataling. I keep getting this error message: com.apple.DiskManagement.disenter error 49153. Do you know how I can tell my mac to read these disks? I would like to convert all data on those disks to store digitally in the cloud. Thank you!
Oh wow this really works. I was having problem with my Adobe After Effects program quitting on me and Spotify not loading artist information or song list and after doing this and restarting my computer it worked flawlessly.
I did chmod -R 777 on etc directory and now all files have permission set to all users as read and write. How to undo the same? The command showcased in the video did not revert the permission of etc directory files. Any kind of help is really appreciated.
I followed your vid very precisely but It didn't work on Catalina 10.15.4
Thank you for your help! That fixed the corruption on my drive.
How do we do this for an external hard drive?
It's the same process, just use the external hard drive disk number from the list you get in diskutil list
Use the external HD disk number where? In replacement of what?
Very good and funny videos bring a great sense of entertainment!
how do you do this for external disks please?
it reset for me but it still wont let me change permissions
Did you solve this? Can you help me?
Hi, Macos update 10.15.4 on my mac was interrupted, and now I'm unable to update or complete the installation. Nor am I able to delete the incomplete macOSupd10.15.4.pkg file in Library/Updates/ folder. Please help.
EXACTLY. what I needed! Thanks so much for the tip and video!
Your hint was perfect. Thank you, young sir!
You’re welcome!
I got "macos needs to repair your library to run applications" when trying to run Garageband in Mojave. Did this command and jut worked! tks
You are awesome! Thank you. This was my last resort - which i wish i would have found earlier - and it worked.
I tried that and I still get the "The operation can’t be completed because you don’t have the necessary permission." error.
Do you have any more tips or resets? High Sierra. 10.13.1
That was mac geek magic! Thanks!
But, how to repair permissions to the external HD (Seagate 2TB) that has data, but somehow got "uninitialized" with a message 'The disk you inserted was not readable by this computer' that Mac system no longer see the mount/partition to be able to access the data. Disk Utility, First Aid was complete (super quick), but did not fix it. FYI, I have a backup copy of data on another HD 2TB Disk. What is the correct command prompt via Terminal for 'disk 2' not 'Macintosh HD disk 1'? I have tried your other video, ''Verify and Repair a Mac Disk via Command Line in Terminal", which did not work. Please advise. I have High Sierra OS on my MBP 2015 laptop.
Didnt work for me though...any other ideas?
Thank you! 2:03
Thanks for the tip, unfortunately it did not work on my macbook 13 inch running Catalina. : (
I am trying to restore SSD flash drive to its original capacity. after formatting I still show 100mb when my ssd is for 1tb. I tried different ways still can figure out how to restore it. please help. thank you!
amazing. worked perfectly. thank you so much!
I have an external drive that is giving me problems, is there any way I can do this for a different drive? BTW the grave on my keyboard is to the left of them 'z' key.
Did you fix this?
Thank you for your video. I found it very helpful.
Maybe I am doing something that isn't possible. I had OS problems after about 9 years so I did a new install of High Sierra. I did a "Get Info" on my Macintosh HD drive that was upgraded by an Apple shop from 1 TB to 2 TB about five years ago. I thought that before I did the new install that I had in "Sharing & Permissions" system Administrators and my account name with "Read & Write" for both. But the Administrators and my account name are missing and when I tried to add them I got the Repair Disk Permissions error. Am I suppose to be able to have Administrators and my account listed under "name" or am I off track? (I posted the error below in a previous post.)
Thanks a lot man! It was so easy! ☺️
Thank you so much!
On Catalina I got stuck on this messege... Last login: Sat Oct 26 10:16:28 on console
login: login: Could not determine audit condition
Could you you me please?
Couldn't you just make an automator script to do this? Lots of folks are petrified of the command line. Pretty amazing that we are reduced to interacting with the mac in 2020 in a way that went out of style in 1975.
Thank you very much! It worked like a charm.
Hello friend!(sorry for my english) i'm trying to do this with an external usd system drive...
Is there a way to select disk in that terminal command?
Thank you!
Hi thanks, can you please help me to get permission to wright on /usr/lib/ I can't put anything on lib folder because permission is denied.
Did you get the answer to be able to copy and paste the libstdc dylib files to usr/lib?
How do you modify this command for an external hard drive? It is the one that is locked. Thanks!
Did you find out how to do this?
will this work on ventura m1? thanks.
You are brilliant ! THANKS !!!!!!!!!
Same question as below. My permissions issue is with a WD external drive that has decided to lock me out from writing anything to it. I've checked the format (still Mac OS). I've also tried setting up a new user but that didn't unlock it either. Any thoughts? I really dont want to reformat the disc until I've exhausted all other options. Thanks
Did you fix this issue?
@@BadMosquito Yes thanks. Seems to be resolved.
@@stewartroxburgh8844 What did you do?
worked perfectly, very appreciated
Thank you!
Thank u so much !
Can you also tell me how to repair the permissions on a different drive?
It only really repairs permissions on the startup drive that has your user directory etc. To repair permissions on another drive, I think you need to start up from it.
Gemsbok Apple Tips and Tricks ok thank you
Hi, I did something that blocked me from using system so I need to reset permissions for Library and System , not user. So Mac HD-> Library and System :
is this valid also for this or do I need to change the command? do I write reset MacintoshHDPermissions?
I tried with repair disk/ first aid but it crashes and doesn't do it. I have High Sierra
I tried to repair on the terminal it says: permission denied
Any idea why my drive, even after this step, won't allow me to take ownership? Baring in mind I used carbon copy clone to install Mojave onto a Samsung 970 evo plus on a mac pro 5,1. It's not ideal, it won't boot into recovery. Is there something I'm missing before I buy the more compatible drive?
i got underlying error
worked perfectly, thank you!
Not working for me. It says ... Ownership of the affected disk is required. I have High Sierra.
I had a second go and went thru the process Ok. I don't know if my problem has been fixed, but at least it went thru the permissions repair process Ok. Tks.
It really works. Thanks
thank you so much , you really help
Thank you so much. It works perfectly
didn't work. I still can't transfer files into my external SSD, permission is still set to read only
Might work for the main HD, but not for any other drives. Must be another command. But this one doesn't work because it defaults to the home drive
dope for Catalina 2021!
Thank you for your help!
Trying this on the latest Mojave build, it's just doing its terminal animation and has been sitting like that for a while. According to iStat Menus, it seems like no disk activity related to diskutil or terminal is actually happening, it's just sitting doing its animation. How long does it typically take to run it? My SSD is a 512GB- it's a 10-core machine w/ 128 GB of RAM lol.
Hey, great video, thanks for sharing it however I am able to reset user permission in one driver with that code. Apple has created two drivers on MacOS Catalina. One is called HD and the other is called HD - data. How do I point that code to the Macintosh HD - Data driver?
I cant move files to my internal hard drive. I try to change admin permission but it says "The operation can’t be completed because you don’t have the necessary permission." Even after putting in my admin password. How to fix this permission situation?
Had the same issues!! And still have ...
Me too
So is the defragmentation for the hard drive?
Lifesaver, thank you!
Worked Thank You :)
How about if my iMac shows at the beginning a bunch of numbers before the bot up
I can get to Utilities and open the Terminal app, but it won't let me type in its window, which says "Last login: Sat June 20 08:56: on console" and below that line [appC07DV1C7DD6L:~] and the name of my desktop and []????
Thanks!
Is the command line the same in Elcapitan
I think in El Capitan it might be the same, but I haven't tested it. There were a couple of commands that were used on it that should work and they are:
sudo /usr/libexec/repair_packages --verify --standard-pkgs /
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
@@GemsbokAppleTipsandTricks - these commands worked for me also in El Capitan. Thank you! The initial command in the video just hung Terminal without any results.
Thank you! Thank you! Thank you! Thank you!!!!!!!!!!!!!!!!!!!!!!
You are so welcome!
Hi there, my MacBook pro 2012 is running on catalina. It will only start on safe mode. Otherwise it will shut down while booting up. I tried to repair the disk permissions but it still is not working. Does anyone know what may be wrong with it.
ThankyoU!!!!! this workd!
Awesome tip
I just went through these steps, but my permissions did not change.
thank you so much
Thanks
How do I do it for 2nd disk
Hi Please i need a help im trayng to add libstdc++.6.0.9.dylib in to the lib folder and but dont let me doi it seems i dont have permission. Can u please help me do this?
I on iMac (21.5-inch, Mid 2011) High Sierra Version 10.13.6
Did you get the answer to be able to copy and paste the libstdc dylib files to usr/lib?
@@bryantlroeback3287 no up to day. Thanks mate
doesn`t work in macOS catalina :(
I just did it and yes it works as shown.
I am trying to find a fix for it. Have you found something to fix it?
10.15.5 Catalina still no fix here.
AWESOME!!!
Will not work on MBP 17" 10.6.3. getting
"-bash: ìd: command not found
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."