Websterz Technology Blog

Free tutorials, Tech News, Source codes, Tweaks and Tips.

Here are the commands to change directories permission recursively to 755 and files permissions to 644 recursively:

To change directories/folders permissions to 755:

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

To change files permissions to 644:

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

Where, /opt/lampp/htdocs is the location of directory. You can use “.” without quotes to scan and change under current directory/folder.

Spread the love
See also  Enabling second level quotas on openVZ/virtuozzo/VPS

Leave a Reply

Your email address will not be published. Required fields are marked *