Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Linux command to modify files and folders within folder

Comments

7 comments

  • quietFinn
    cd /home/USERXXX/public_html/ wp-content/ find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; EDIT must be "-exec" not "--exec".
    0
  • toplisek
    It will be pushed the following output: find: unknown predicate `--exec' I have already a file inside directory with the permission 644 but sub folders and files should be detected. Is it a command correct or I made mistake?
    0
  • quietFinn
    oops it's "-exec" not "--exec" :eek:
    0
  • toplisek
    It seems it was not modified. How to validate all permission using Linux command that files have permission set as 644 and folders as 755?
    0
  • toplisek
    I see now it was modified. Thank you for the message!
    0
  • quietFinn
    It seems it was not modified. How to validate all permission using Linux command that files have permission set as 644 and folders as 755?

    find files whose permissions are not 644 find . -type f ! -perm 644 -ls find directories whose permissions are not 644 find . -type d ! -perm 755 -ls
    0
  • toplisek
    Thank you for the message! It works now even WordPress Toolkit does not react to modifications as it seems it is based on intervals and verification cron jobs...
    0

Please sign in to leave a comment.