Script to change the permission of files and folders in a linux server FILE—–. find /home/user/public_html -type f -exec chmod 644 ‘{}’ \; DIRETCORY find /home/user/public_html -type d -exec chmod 755 ‘{}’ \;
Both of this can be merged together as the script below : ————– find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; ————– Reply
Both of this can be merged together as the script below :
————–
find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;
————–