How to change main FTP user path in cPanel account on CentOS Linux server ?

How to change main FTP user path in cPanel account on CentOS Linux server ?

As we all know by default cPanel does not allow us to change the FTP user path for your main and sub-accounts after account creation. Today we will learn how to change it then after.
You can easily change it through FTP configuration files. Every cPanel user has a separate file at this path /etc/proftpd (also if you use pure-ftp).

To check user FTP path run this command :
# cat /etc/proftpd/user
It will give you this result :
user:$1$vAYD1RJQ$U7pJmHJvT5dFL.kzoJ8f6/:509:508::/home/user:/bin/ftpsh
user_logs:$1$vAYD1RJQ$U7pJmHJvT5dFL.kzoJ8f6/:509:508:user:/home/.domlogs/user:/bin/ftpsh
/etc/proftpd contains a file for each of the cPanel accounts on the server. We can edit the file for the domain, and change the home directory.

user:$1$vAYD1RJQ$U7pJmHJvT5dFL.kzoJ8f6/:509:508::/home/user/your/new/path:/bin/ftpsh
After editing save the file and then restart pure-ftpd service.
Author
bhawanisingh
Views
3,024
First release
Last update
Rating
0.00 star(s) 0 ratings
Top