VSFTPD installation and access

January 31, 2015 370 views

I installed VSFTPD for the current user normally. I want to give access to files like this - ftp://username:password@[ipaddress]/path/to/your/file.xml
I just installed my game(callofduty4) in a folder I created in home directory with the root user. The files i want to give access to clients are automatically creates in root. So I can't give the link as above because I have to give root and password for that. How can I create a new account and give the access to that files in root directory.

1 Answer


Instead of providing a user access to the /root folder, which is not recommended. I would suggest creating another user and placing the files they need access to into their home directory. You can find a guide on setting up additional users here

After creating the users, they will have a /home/username folder. This folder will be something they can access. Then you can upload it as root and change the ownership of the file with

chown username:username /home/username/filename

Then you can just upload it to their home directory, they can log in and get the file. This prevents the security risks of making a mistake and providing a user access to the /root directory.

by Justin Ellingwood
Learning how to manage users effectively is an essential skill for any Linux system administrator. In this guide, we will discuss how to add and delete users and assign sudo privileges on an Ubuntu 14.04 server.
Have another answer? Share your knowledge.