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!

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:
    3
    Trophy Points:
    168
    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:
    11
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hgrg

    hgrg Well-Known Member

    Joined:
    Oct 4, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    56
    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:
    3
    Trophy Points:
    168
    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:
    11
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    3
    Trophy Points:
    168
    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

  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