Adding new user to vsftpd (ftp in ubuntu)

Step 1)
Add a user with a home directory to the ubuntu server.
Here’s a HowTo.

And in case the content disappears, here it is:

sudo useradd -d /home/newftpuser -m newftpuser
sudo passwd newftpuser

Step 2)
Configure your vsftpd server.
Here’s a HowTo.

Here are the core steps for those too lazy (like me) to click the link above or want to hear my explanation for what each command does.

Edit /etc/vsftpd.conf and add/uncomment the following line:


You only have to do this the first time obviously.
This will allow all system users to browse around the file system except those listed in the /etc/vsftpd.chroot_list (which we’ll modify next).

Create or edit the /etc/vsftpd.chroot_list and add the user:


This will restrict this user’s ftp access to just their home folder at /home/newftpuser.

Step 3)
Restart the vsftpd service.

service vsftpd restart

Make sure all your ftp clients are disconnected from the ftp server or else the service waits till those users are done.

Tagged , ,

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

%d bloggers like this: