I have a python flask application (https://github.com/Ottermad/PeterWakefieldSite on 178.62.75.68) which does allows a user to upload a file a then call a ruby program (https://github.com/benbalter/word-to-markdown) on that file. However, the terminal program needs root user permissions. So how can either configure my VPS to either run as root or how to mod the terminal app to not need root permissions.
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!
This question was answered by @ryanpq:
It sounds like the soffice process being used in the background for document conversion is the thing that is encountering permission issues for you. It is possible to start the soffice process in a headless state as a non-root user but appears to require some workarounds. This forum thread provides some more details on getting soffice running headless as a non-root user and once soffice is running as the same user as your web server the permission issue should be resolved.
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.