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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.