This question has been flagged

Hello odooers,

I am stuck on a major issue and hope will get a proper solution from here.


In my server, my Odoo folders are located in /opt/odoo. Accidentally I have changed its user permission by using the below command.

sudo chown -R odoo:odoo /opt

I was planning to change my custom addons permission. But unfortunately I have changed the whole /opt user permission to the user odoo.

Now I can acces odoo. But my database selection and manager pages are broken it's styles. In console, it shows that some files are failed to load.


Is there any way to reset my permission back ?

Or can you please help me to solve the issue I face on the view ?


Thanks in Advance.

Avatar
Discard
Best Answer

Please use the below command to change the /opt folder's owner

sudo chown -R root:root /opt

and run this command to set the user for the /opt/odoo folder

sudo adduser --system --home=/opt/odoo --group odoo

Hope this helps you and still face any issues. Please do share some screenshots that will help to find the root cause.

Avatar
Discard