How do I create FTP usernames with email (like in cpanel)

General support questions
Post Reply
WaqasT
Posts: 1
Joined: 2017/04/17 01:25:00

How do I create FTP usernames with email (like in cpanel)

Post by WaqasT » 2017/04/17 01:41:47

I have recently moved a website to aws from Godaddy, there are some legacy FTP accounts that are needed to be kept. The usernames can not change as they were coded into some software they need to be the same. All the ftp accounts are email addresses associated with the domain name (as cpanel does it). I have created a separate instance (CentOS) to cater for FTP.

To be clear I want name@domain-name.com to work as a login name on FTP.
This is what I have done so far;

1. On DNS settings ftptest.domain-name.com is pointing to the IP of the instance.
2. On AWS firewall for the instance I removed http access and added ports for the ftp (20-22 and 1024 - 1048).
3. Edited /etc/sysconfig/network to

Code: Select all

NETWORKING=yes
HOSTNAME=domain-name
DOMAINNAME=domain-name.com
NOZEROCONF=yes
4. Edited /etc/hosts to

Code: Select all

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost6 localhost6.localdomain6
3x.xx.xx.1x0 ftptest.domain-name.com ftptest
5. I installed FTP server on the instance (vsftpd: version 2.2.2).
6. Created a new user called test and gave it a password.
7. Tried to login via Filezilla using test@domain-name.com and failed with

Code: Select all

Response:	530 Login incorrect.
8. tried to login as test and was successful.

How do I make it so that I can use test@domain-name.com to login using FTP? The old server which had cpanel did this and I need the same functionality.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How do I create FTP usernames with email (like in cpanel)

Post by TrevorH » 2017/04/17 12:53:28

If vsftpd is 2.2.2 then you must be running CentOS 6 not 7 - moved post accordingly.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply