chmod 777chmod is used to change the permissions of the actual file. When you execute chmod 777, you are allowing RWX (read, write, execute) access to owners, groups,You 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.