access rights to a folder and its subfolders code example Example: access rights to a folder and its subfolders find /opt/lampp/htdocs -type d -exec chmod 755 {} \;