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.

Entire public_html directory removed by mistake when setting up FTP Account

Discussion in 'General Discussion' started by jols, Jan 5, 2013.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Hi,

    A hosted customer who was trying to establish an added FTP account removed the public_html from the Directory field and entered their target directory name "store" within that field. Of course their /store directory is within their public_html so it was a big mistake to replace public_html with the word "store" rather than to simply add "store" to the path like so:

    /public_html/store

    However, what should have been a minor mistake became a huge mess because when he clicked Create FTP Account. the cPanel system did three things:

    1 -- Removed the entire root, public_html directory.

    2 -- Removed the public_ftp directory.

    3 -- Created a new directory in sub-web named "store".

    Question - So that people don't end up flush months of work down the tubes with a single click upon making such a simple error, is there any way cPanel.net can lock in the public_html part of the path in the FTP Accounts utility? Or at least prevent the system from removing public_html when the Directory field is filled in this way?
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Re: Entire public_html directory removed by mistake when setting up FTP Acc

    I don't think that is true.
    If you create a FTP account, and you set the directory as /home/CPANELUSERNAME/store, that FTP account has ONLY access to that directory.
    If you connect, using FTP, with your cPanel username & password, you will see the /home/CPANELUSERNAME directory, including public_html AND store directories.
     
  3. hgrg

    hgrg Well-Known Member

    Joined:
    Oct 4, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Re: Entire public_html directory removed by mistake when setting up FTP Acc

    @jols:
    ftp account creation wont remove directories from your server.. its like some woodoo stuff :)
     
  4. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Re: Entire public_html directory removed by mistake when setting up FTP Acc

    I would certainly hope not, but this is what was reported and I saw the aftermath shortly there after. Next we are going to set up a dummy account and try this.
     
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Re: Entire public_html directory removed by mistake when setting up FTP Acc

    I already did before I replied... nothing was deleted.
     
  6. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Re: Entire public_html directory removed by mistake when setting up FTP Acc

    Sheesh, strange report then. I'll be testing this soon. Thanks very much for the responses.
     
Loading...

Share This Page