How to set permissions of certain folders to 777 on Mac

Toby picture Toby · Apr 19, 2014 · Viewed 9.9k times · Source

I need to set the permissions of just 3 specific folders (on my Mac) to 777 I went to CMND+i (get info) but the folder permissions seemed to be Read and Write - but this didn't seem to fix it.

I am trying to work out how to do this, because I am using MAMP on my Mac to try and run a localhost server to test a website. Reason; I am trying to run the script of a PHP website. It is asking me to change the permissions of certain folders in order to proceed with the 'install'.

I think the closest match to a possible answer is here: Java: Create a new dir with 777 permissions on Mac

But, this appears to be Java. I assume that I need to be able to do this via either MAMP or Terminal. If anyone could please advise me which program/tool to use and what to type in, I'd be very grateful.

Thanks

Answer

Elliott Frisch picture Elliott Frisch · Apr 19, 2014

I know how to do it in a terminal, to create "/some/directory/some/where" you can use -

# EDIT: 777 not 077.
mkdir -p /some/directory/some/where && chmod 777 /some/directory/some/where