cancel
Showing results for 
Search instead for 
Did you mean: 

cache folder and generated folder keep change owner back to root

cache folder and generated folder keep change owner back to root

Hi there,

IMy Magento 2.3.3 application keep changed the cache folder and generated folder back to root. so how do I fix this problem?

thank you

ken

3 REPLIES 3

Re: cache folder and generated folder keep change owner back to root

@lifecorners use the below command to change the owner and group.

 

sudo chown -R username:group directory

 

Also check if there is any cron setup which is changing the owner of your folders.

 

Thanks 

Re: cache folder and generated folder keep change owner back to root

Hi there,

I did it, but the folder ownership keep change to root:root every time I clean the cache from the system.

I think it is something to do with composer install not to the right owner or group.

any idea how to reset the composer?

thank you.

ken

Re: cache folder and generated folder keep change owner back to root