Comments (6)
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.
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.
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.
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.
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.
Yeah, whenever I have time I should check what exactly happens when I remove the sudo-ers groep.
from installscript.
Related Issues (20)
- after odoo 15 to 16 database migration error is coming psycopg2.errors.InvalidDatetimeFormat: invalid input syntax for type timestamp: "" HOT 2
- AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' HOT 2
- the script can't point my domain to the machine in contabo HOT 2
- Having problem when install with python3.10 HOT 1
- [10.0] pip2 and pip requirements missing HOT 1
- I want to add a translation HOT 2
- Some necessary changes to the odoo_install_debian.sh
- 17.0 on Ubuntu 22.04 HOT 6
- Instructions in script don't align with instructions in readme HOT 2
- Installation Error - AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' HOT 2
- Odoo17 on ubuntu 22.04 error HOT 12
- The SSL script causes (refused to connect) after the installation HOT 1
- Ubuntu 22.04 Odoo17 wkhtml issue HOT 6
- Odoo v16 - Error on apt update after installation on ubuntu 22.04. + Proposed solution
- Hide database manager HOT 4
- websocket issue
- invoice header and footer issue HOT 1
- odoo-server.conf has only few lines ?? HOT 1
- auto_backup V16 (Yenthe/OCA)
- Scripted installation fails on Debian GNU/Linux 11 (bullseye) - service status active(exited) - Logs Empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from installscript.