Skip to main content

How to change the permissions to multiple files at once?

Comments

7 comments

  • Infopro

    find /home/username/public_html/prestashop -type d -perm 0777 -exec chmod 755 {} \; find /home/username/public_html/prestashop -type f -perm 0666 -exec chmod 644 {} \;
    Assuming thats where your shop is, they should work.
    0
  • robi_70
    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?
    0
  • Infopro
    Do you have root access to this server?
    0
  • robi_70
    YES.
    0
  • SysSachin
    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.
    0
  • robi_70
    excuse me! My mistake. I made a mistake typing a command! Now it is discovered. The code worked. Thanks a lot!
    0
  • cPanelMichael
    Hello :) I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.