≡ Menu

How to create a new FTP user in VSFTP?

Question – I want to add a new user for FTP access. I am running VSFTP. How do I do that?

Adding a new FTP user is as simple as adding a new user to your Linux box. VSFTP can automatically grant access to FTP to all local users using the same password which is used for shell access.

To add a new user to your Linux box:

adduser -d /home/ewhathow -m ewhathow

The above command will create a new user ewhathow with the home directory /home/ewhathow and the -m argument instructs adduser to create the user’s home directory if it does not exist.

To set a password for the user ewhathow, use the passwd command:

passwd ewhathow

Now, to be able to login as FTP, you must make a change to the vsftpd.conf file:

[root@server ~]# cat /etc/vsftpd/vsftpd.conf | grep local_enable
[root@server ~]#

If local_enable is not set to YES, VSFTP will not allow local users to login through FTP. You must set local_enable to YES. After adding the new user, you should restart vsftpd:

service vsftpd restart

Comments on this entry are closed.