Folders and Files permissions settings
is not it right?
Link: https://mage2.pro/uploads/default/original/1X/2e9c0788afebcecb7bec4302333bf64b5e1c8491.png
It is not recommended to have 777 as a permission for any folder. That means anyone can write to the folder. Please follow guidelines specified here and here.