chmod 777The chmod command modifies the mode bits and the extended access control lists (ACLs) of the specified files or directories. The mode can be definedYou can type chmod 777, leave a space after it, and then drag the file or folder from Finder into Terminal. Terminal will fill in the correct path for you.