We can change Directories and Files Permissions in Linux by running the following commands.
Command to change folder path to 755:
find /base_path/public_html -type d -exec chmod 755 {} \;
Command to change file path to 644:
find /base_path/public_html/* -type f -exec chmod 644 {} \;
For Example:
find /path/to/server/public_html -type d -exec chmod 755 {} \;
find /path/to/server/public_html/* -type f -exec chmod 644 {} \;
0 Comments