By default cPanel/WHM does not allow you to change the FTP path for cPanel user. If you want to change the path for cPanel user or additional FTP users then you can change it through shell. Each cPanel user has a configuration file into /etc/proftpd/ folder.
# cat /etc/proftpd/user user:$2sduh34f4gd3Fggfszl#JDTYuKXh.asdJDd/:356:648:/home/user:/bin/ftpsh user_logs:$2sduh34f4gd3Fggfszl#JDTYuKXh.asdJDd/:356:648:user:/home/.domlogs/user:/bin/ftpsh
As you can see, /etc/proftpd contains a file for each of the cPanel account. Edit the file for that particular user and change the home directory like as follows
user:$2sduh34f4gd3Fggfszl#JDTYuKXh.asdJDd/:356:648:/home/user/FTP_Folder:/bin/ftpsh
Save the file and then restart pure-ftpd/pro-ftpd service.
You can contact us at [email protected] if you require any further assistance.
Comments are closed.