Change of document root of FTP Server

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
Hello,
in proftpd i have the possbility to change the document root dir
to /public_html
But then i have ftp login problems with the additional accounts.

Is there a solution for this or alternative with pure-ftp ?

thank you
 

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
No, in cPanel you can create additional ftp-accounts:
cPanel->ftp-accounts

Because some clients confusing the upload folder, i set the document root to pubic html:
in /etc/proftpd.conf:
from
DefaultRoot ~ !wheel
to
DefaultRoot ~/public_html

This works, but then the additional created ftp accounts, dont work.
(in other control panels, no problem!)

So think this is a bug in cPanel or there are other solutions?
Is its possible to realize with pureftpd?
 

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
additional ftp is useful, if you want to grant only to ftp folder, but not to cpanel (Email-Account etc.)

And also a additional ftp account that is set to subfolder , dont work...
(if in the configuration file in proftp is set to /public_html)
otherwise it works.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
When you create an additional FTP user in cPanel & WHM, the home directory, or document root, of that user is set at the time you create that user. Changing the service configuration (/etc/proftpd.conf in your case) to have a different document root is inadvisable at this time.

When changing the service configuration, you'll also need to update the configuration for every single FTP account to behave properly.