Creativebits.org

an All Creative World site
Ivan's picture

Regular automatic permission repairs

AttachmentSize
daily.local.zip195 bytes

Repairing disk permissions

Misbehaving applications, moving files between users and other operations can screw up the permissions of your files on your hard disk. This may cause various problems. For example applications quitting or files not opening.

OS X is already running daily, weekly and monthly crons, so it makes sense to add permission repair to one of these schedules. To do this we will make OS X execute a small Unix command diskutil repairPermissions / daily.

Download the file below to your Desktop and unzip it. Open Terminal and type in the two commands below. (Replace yourusername with your username. ;)
sudo cp /Users/yourusername/Desktop/daily.local /etc
sudo chmod +x /etc/daily.local

The first command copies the downloaded file from your Desktop to your invisible /etc folder. You will need to give your admin password after the first command. The second one gives the system access this file.

From now on your permissions will be repaired every night. If you want it to be just weekly or monthly, just rename the file.

Commenting on this Blog entry is closed.

Innesfactor's picture
18 pencils

Sweet tip! I've been wondering how to do this for awhile now.
A couple of questions--
Is this technique compatible for all OS X versions?
If I ever wanted to stop running it, what would I have to do?
Thanks!!

Seph's picture
2 pencils

Hey Ivan!

Thank you very much for this small but handy tip - I am one of those permission freaks, now i can sleep calmly :P

I too would like to know about uninstalling (if i ever have to)

Thanks again!

Ivan's picture

You just have to delete the file, like this:
rm etc/daily.local

grafixforlife's picture
226 pencils

Whenever I try to do something that requires admin password in Terminal and the queue comes up for me to type it in my keyboard suddenly doesn't work. What's the deal?

Visit My Website!: - David Bailey - graphic artist - ONLINE PORTFOLIO -

sdimbert's picture
68 pencils

Heh. Your keyboard didn't stop working. OS X just doesn't show any onscreen info when you enter a password. Just go ahead and type your password; it will work.

grafixforlife's picture
226 pencils

Heh that makes sense! Thanks!

Visit My Website!: - David Bailey - graphic artist - ONLINE PORTFOLIO -

Esquare's picture
10 pencils

Don't forget to read this (especially the comments):
http://www.unsanity.org/archives/000410.php

Ivan's picture

Well, permission repair is not a magic potion that fixes every issue with yout Mac of course, but in several cases screwed up permissions are responsible for misbehaviour.

Esquare's picture
10 pencils

But I have yet to see a single well documented case of permission repair doing anything useful since system 10.3. But doing it automatically hopefully gets rid of that rediculous kneejerk reaction of repairing permissions when even the slightest thing goes wrong. At least peoplem will then think "Oh my permissions are alright, so the problem must be something else!" (which usually is the case).

sisco's picture
4 pencils

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace