Entire public_html directory removed by mistake when setting up FTP Account

jols

Well-Known Member
Mar 13, 2004
1,107
3
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?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
464
438
Finland
cPanel Access Level
Root Administrator
Re: Entire public_html directory removed by mistake when setting up FTP Acc

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".
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.
 

hgrg

Well-Known Member
Oct 4, 2010
90
0
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 :)
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
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.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
464
438
Finland
cPanel Access Level
Root Administrator
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.
I already did before I replied... nothing was deleted.
 

jols

Well-Known Member
Mar 13, 2004
1,107
3
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.