Report this

What is the reason for this report?

VSFTPD installation and access

Posted on January 31, 2015

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.