The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    430
    Likes Received:
    0
    Trophy Points:
    16
    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:
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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:
    16
    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:
     
  4. pingo

    pingo Well-Known Member

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

    John

    cPanel.net Support Ticket Number:
     
  5. boyforeigner

    boyforeigner Well-Known Member

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

    pingo Well-Known Member

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

    John
     
Loading...
Similar Threads - chmod public_html's 755
  1. John Donnellon
    Replies:
    7
    Views:
    326

Share This Page