How to change bulk file permission from all folder

Discussion in 'Apache' started by jhashan, Sep 14, 2013.

  1. #1
    Hi, recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?
     
    jhashan, Sep 14, 2013 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    You can use the following to do this through SSH:

    find /home/USERNAME/public_html -type f -perm 0664 -exec chmod 644 {} \;
    PHP:
    Make sure the change the "USERNAME" to the proper name on your server.

    Regards,
    Chris
     
    RHS-Chris, Sep 14, 2013 IP