I ran sudo chmod go-w /usr on my Mac – is this an issue?

Posted on

QUESTION :

So as the title suggested while troubleshooting a warning message, I mistakenly ran the following command in my Mac Terminal:

sudo chmod go-w /usr 

Is this likely to cause me any problems and if so, can I undo it?

I also ran this to try and solve my original issue (which was on the wrong track altogether):

chmod 766 /usr/local

However this said it didn’t have permission to run so hopefully that was harmless.

I will be much more careful with such commands in the future!

ANSWER :

If the command did not have permission run then nothing was done and you will be fine.

Also giving the /usr/local folder sudo rights won’t do any harm.

Leave a Reply

Your email address will not be published. Required fields are marked *