Script to change the permission of files and folders in a linux server 1 Reply FILE—–. find /home/user/public_html -type f -exec chmod 644 ‘{}’ \; DIRETCORY find /home/user/public_html -type d -exec chmod 755 ‘{}’ \;
Vinisha October 4, 2009 at 6:58 amBoth 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 {} \;
————–