How is possible, that user can delete systemfolder via FTP?

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
Hello,
i have 2 customers they have deleted the system folders via ftp.
The directory like: mail,public_html
How is this possible? How can i fix this?

and how can i restore /renegerate this system folder this?

thank you
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
This is possible because the user has control over these folders as they are under their ownership within their home directory, I know how frustrating it is however when a client with a badly configured web publishing program manages to wipe out their account several times in a row. Still, I suppose that's what backups and t&c clauses that allow you to charge for fixing client mistakes are for ;)
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
Totally avoidable by user education (i.e using sub ftp/web disk accounts locked to public_html to publish, not deleting things they don't know the purpose of) and not using crap web publishing software ;)

Perhaps more relevant to what you're asking, no there isn't a configuration you can change to make the issue go away. Out of interest are you doing general hosting or are you managing a cPanel machine that contains a number of sites to which various members of staff have access?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

You could create an individual FTP account for the user that does not have access to directories above public_html. However, the user would have to be directed to use that FTP account instead of the cPanel username. The following feature request may be of interest to you:

Per Account Ability to deny forms of file management

Thank you.