• @[email protected]
    link
    fedilink
    267 months ago

    Learned that when dealing with Ansible:

    • Folder in most cases 755
    • File in most cases 644 or 755 if executable.
    • @[email protected]
      link
      fedilink
      4
      edit-2
      7 months ago

      To change all the directories to 755 (drwxr-xr-x):

      find /opt/lampp/htdocs -type d -exec chmod 755 {} \;

      To change all the files to 644 (-rw-r--r--):

      find /opt/lampp/htdocs -type f -exec chmod 644 {} \;