Git Product home page Git Product logo

Comments (6)

Yenthe666 avatar Yenthe666 commented on June 24, 2024 1

Hi @slimit,

Basically for all the sudo command calls to execute without password confirmation dialogs and to have all rights out of the box. Otherwise it would involve more handling or knowledge to do it right.

from installscript.

Yenthe666 avatar Yenthe666 commented on June 24, 2024 1

Hmm, perhaps it can be removed from the root group yes. This would need to be tested though, I'm not sure what consequences it gives.

from installscript.

chris001 avatar chris001 commented on June 24, 2024

I think root is required for the script to install binary debian package on the system, which are required to run odoo. Packages like postgresql and wkhtmltox. And executing createuser, etc.

After the script completes the install, while the odoo service is running normally on the system, it might be possible to remove the odoo user from the sudo'ers group. For better security. So that a hole in odoo code could not be exploited to easily gain root on the system.

from installscript.

selimb86 avatar selimb86 commented on June 24, 2024

I understand that it is just a workaround to guarantee that the odoo user has all permissions but as I see in the script you haven't switched to the created odoo user, so I think that it can be removed from the script, but we have to test it to see the consequences.

Anyway I just wanted to know if Odoo needed it.

from installscript.

chris001 avatar chris001 commented on June 24, 2024

Yes I agree, when odoo service is running, it should run under odoo user. And give odoo user only the required permissions, not root permissions. This is the secure way.

from installscript.

Yenthe666 avatar Yenthe666 commented on June 24, 2024

Yeah, whenever I have time I should check what exactly happens when I remove the sudo-ers groep.

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.