Staff Member

As a friendly word of caution, please be careful when entering commands that apply changes recursively as there is the potential (for human error or otherwise) to inadvertently set access permissions that may break expected functionality or restrict normal access, for example, by changing the permissions of the public_html directory or other higher-level (parent) directories.

Before proceeding, I recommend carefully reading the manual "man" pages for both the utilities used, "find" and "chmod" as seen in the above example:

Code:

# man find
# man chmod

Via SSH access, the following example may help to get started (where "username" is the cPanel account username):

Basically as per your query it seems to be that you want to change the permission 755 for files/directories present under the subfolder present under the main directory (public_html).Than refer the following command.

chmod 755 /home/user/public_html/subfolder -R

The above command will change the all files/folders permission present under the directory /home/user/public_html/subfolder

And if you want to change the permission 755 to only directory present under the /home/user/public_html/subfolder then use following command