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 ftpuser@domain.com

/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
ftpuser:Password:501:501:cpanelusername:/home/cpanelusername/public_html/ftpuser:/sbin/nologin

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

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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s