Git Product home page Git Product logo

Comments (6)

chris001 avatar chris001 commented on August 24, 2024

Root (sudo) is only needed for installing the system packages with apt, for installing system-wide python packages with pip, and for other sys admin actions such as creating the user and adding to group
https://docs.python.org/3.4/installing/index.html
Apart from these, the odoo-bin service SHOULD be able to run without issue, under user odoo, without the odoo user being a member of the sudoers group.
During runtime, the odoo-bin service should NOT need to perform any privileged actions requiring sudo root access.

from installscript.

jpaulin avatar jpaulin commented on August 24, 2024

By the way, one issue that I'd like to make sure; how about in case where Odoo is set to run in a "low" port, such as 80 (for ordinary web servers)? Still, installer would not need sudo rights?

from installscript.

Yenthe666 avatar Yenthe666 commented on August 24, 2024

Actually, that should require sudo rights I believe, as the first 1.000+ ports are reserved for root/admin. So that might be a good catch!

from installscript.

chris001 avatar chris001 commented on August 24, 2024

Yes @jpaulin @Yenthe666 when you run odoo service listening on port <1024 , sudo is required. This is probably acceptable to develop and test on odoo in a private LAN.
However, in practical usage, Odoo's web server, werkzeug, is not a very good idea to expose to the public global internet, so, for best practices, it is smarter to run nginx on ports 80 and 443 as reverse http/https proxy, and let odoo stay safe and unexposed to the global internet, on port 8069 (or any high port number > 1024).

from installscript.

jpaulin avatar jpaulin commented on August 24, 2024

@Yenthe666 @chris001 Thanks for clarification, this nailed also the question I'd had for long in my mind: the internal web component of Odoo is thus called "werkzeug".

from installscript.

chris001 avatar chris001 commented on August 24, 2024

More about werkzeug (German word for "tool"): https://pypi.python.org/pypi/Werkzeug

from installscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.