How to change the permissions to multiple files at once?

robi_70

Member
Jul 25, 2011
9
0
51
Hi,

I moved to a new server with cPanel account with PrestaShop installed there (on the old server was also Cpanel). Unfortunately, for reasons unknown to me on the new server, all files are PrestaShop powers 666. A should be 644.
Presta has a huge number of files in multiple directories and subdirectories.

Is there a simple way to change the permissions of all files?
 

robi_70

Member
Jul 25, 2011
9
0
51
I'm not an expert in this field. Please tell me where I got this code apply?
I logged in to the server via SSH (puty) and I wanted to use this code, but getting feedback messages such as: "-bash: -type: command not found", "-bash: type: -perm: not found", "..."

What am I doing wrong?
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hi,
May I know are you access your server directly with root user or first access server with super-user then root?
Also, let me know which OS installed on your server.
 

robi_70

Member
Jul 25, 2011
9
0
51
excuse me! My mistake.
I made a mistake typing a command!
Now it is discovered.

The code worked.
Thanks a lot!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

I am happy to see you were able to address the issue. Thank you for updating us with the outcome.