Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

A way to chmod public_html's to 755 in one hit via ssh?

Discussion in 'General Discussion' started by pingo, Oct 2, 2003.

  1. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    428
    Likes Received:
    0
    Trophy Points:
    166
    Is this possible? - I am moving 1200 web sites to other servers and WHMs copy function are not copying folder permissions correctly. Is it possible to chmod public_html folder to 755 for all accounts via ssh with one command? - The servers uses phpsuexec.

    Thanks
    John

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    I'm pretty sure that

    chmod 755 /home/*/public_html

    will do the trick

    cPanel.net Support Ticket Number:
     
  3. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    All over Europe
    As advised above:
    chmod 755 /home/*/public_html

    will chmod 755 all public_html directories. If you have home, home2 etc, then:
    chmod 755 /home*/*/public_html

    If you want to chmod 755 also all files INSIDE (under) public_html, then:
    chmod -R 755 /home*/*/public_html

    kosmo

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    428
    Likes Received:
    0
    Trophy Points:
    166
    Thanks alot for helping :)

    John

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. boyforeigner

    boyforeigner Well-Known Member

    Joined:
    May 18, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    update your whm to the latest release and the permissions will be correctly.
     
  6. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    428
    Likes Received:
    0
    Trophy Points:
    166
    The accounts were transferred long ago. Has the problem with permissions using WHMs copy function been fixed since then?

    John
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - chmod public_html's
  1. Sametto Chan
    Replies:
    3
    Views:
    291

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice