Once you have run upgrade command then if you will not give permission then you will get error like below:
In order to resolve it you have to run few commands that will give proper permission commands are as :
- sudo chmod -R 777 var/
- sudo chmod -R 777 pub/
- sudo chmod -R 777 app/
Your permission issue will be resolved.