I am having some issues with my magento 2.3.1 stored on a ubuntu 16.04 server . each time i run php bin/magento setup:upgrade, the VAR and GENERATED folder always loses its permission until i run sudo chmod 777 -R var/ pub/ generated/ to give it full permissions but this keeps bugging out.
I am thinking of using
- CRON to run a script that will run every minute that will give the folders full permission. or
- using HTACCESS to get this done. [using https://stackoverflow.com/questions/10086989/htaccess-file-to-allow-access-to-images-folder-to-view-pictures]
So far, Nothing is working fine