I accidentally run some magento's command as root user and some directories and files have messed up permissions.
Is there any way to reset the permissions because currently I'm getting errors such as:
UnexpectedValueException: The stream or file "/var/www/shop//var/log/system.log" could not be opened: failed to open stream: Permission denied in /var/www/shop/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108 Stack trace: #0
web
. It's also a member ofwww-data
. That is my magento user (web
). I could probably name the user more aptly.