VSFTP – Configuring anonymous access & selected user access

In our earlier tutorial, we discussed how to install & configure VSFTP without anonymous access. In this tutorial we will discuss about anonymous & selected user access to our VSFTP server.

Now, lets discuss to configure our VSFTP with anonymous access ‘enabled.


We must first allow Anonymous access in configuration file. So open configuration file

vi /etc/vsftpd/vsftpd.conf

then,  enable anonymous access


restart server to implement changes.

This should allow anonymous access to our FTP server.But that only gives access to server, user won’t be able to upload any files there because file permissions are still not set for anonymous users.

To enable anonymous upload, we will firstly give all permissions to /etc/ftp/pub

chmod 777 /etc/ftp/pub

Then we make changes in configuration file



If using SElinux, use following commands to set Selinux boolean values

getsebool -a grep ftp

and change the result to

setsebool -p allow_ftpd_full_access=1

restart service & our anonymous access user will now be able to upload files to ftp server.


Blocking access to user

In order to block access for a user (or users). Open /etc/vsftpd/ftpusers

vi /etc/vsftpd/ftpusers

and add the users you wish to block access to FTP. Save the file and restart server to implement changes

service vsftpd restart

This will restrict the users mentioned in file to access our VSFTP server.


Allowing only few users access

We can also configure our server to allow access to only few users & block rest of the users. To do this, open VSFTP configuration file

vi /etc/vsftpd/vsftpd.conf

and make following changes


save the file & now open,

vi /etc/vsftpd/user_list

and add users that you want to grant access to the ftp in seperate lines.


Save the file & restart service.

That’s it guys, that concludes our tutorial for VSFTP. If you want to know more options for file sharing, you can also read my tutorial on NFS (Network File System). Please guys don’t forget to provide your much needed feedback or queries down below.

If you think we have helped you or just want to support us, please consider these :-

Connect to us: Facebook | Twitter | Google Plus

Donate us some of you hard earned money:

Linux TechLab is thankful for your continued support.


Passionate about Linux & open source. Loves to learn, read & write about Linux as well as new technologies.

You may also like...

4 Responses

  1. Karl says:


    • Shusain says:

      Hey there KARL, no need for getting so worked up. To disable the anonymous logins , goto ‘/etc/vsftpd/vsftpd.conf’ & look for section with ‘anonymous_enable=YES’ & change it to ‘anonymous_enable=NO’.
      Also look for ‘anon_upload_enable=YES’ & changes it to ‘anon_upload_enable=NO’. Save the file & restart the service to implement the changes.
      This solution is tested & should work for you as well.Please let us know.

Leave a Reply

Your email address will not be published. Required fields are marked *