Create ftp user from backend (ssh) in cpanel server

Normally all the cpanel servers would have pureftp running by default, you need to change it to proftpd inorder to make it working. You can switch it using the following command

server [~]# /scripts/setupftpserver proftpd

Now we need to create a new ftp user with the required home directory. You can use the following command to create a ftp user

/usr/local/cpanel/bin/proftpd_passwd <sys user> -a <vuser>:<passwd>:<uid>:<gid>:<owner>:<home_dir>:<shell>

server [~]# /usr/local/cpanel/bin/proftpd_passwd cpanelusername -a

server [~]# /usr/local/cpanel/bin/ftpupdate

To delete an ftp accounts, run the command.
/usr/local/cpanel/bin/proftpd_passwd -d



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s