By Attila SATAN
I installed node as described in this tutorial.
I’m going to let users upload and download. That makes me thing " is it safe to run node as root?"
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!
Hi, <br> <br> <br>Short answer No… <br> <br>Long answer <br>Running anything that uploads or downloads files as root is never a good idea as with root you can do all sorts of nasty things if the js scripts your are running via node are ever exploited. Just a side not when allowing a user to upload files always make sure the files are uploaded into an non-webfacing dictionary as otherwise an exploit could be uploaded and executed very easily. <br> <br>Hope this helps
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.