-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why should the odoo user have root access ? #56
Comments
Hi @slimit, Basically for all the |
I think root is required for the script to install binary debian package on the system, which are required to run odoo. Packages like 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. |
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. |
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. |
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. |
Yeah, whenever I have time I should check what exactly happens when I remove the sudo-ers groep. |
Hello,
First of all thank you for this great install script.
I don't understand why should the odoo user have root accesses on the machine, can you please provide an explication.
InstallScript/odoo_install.sh
Line 104 in 974c01e
Regards,
The text was updated successfully, but these errors were encountered: