How to fix “Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line”

(Anant Thakur) #1

Hi Dmitry,

I am facing the “Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line.” when trying to run any magneto 2 commands, Also other issue is “Can’t create directory /home/izzysbeautyshoppe/www/magento2/generated/code/Magento/Eav/Model/Entity/Attribute/Set/.
Class Magento\Eav\Model\Entity\Attribute\Set\Interceptor generation error: The requested class did not generate properly, because the ‘generated’ directory permission is read-only.” Can you please help me ?

0 Likes

How to fix the «Can't create directory 'generated/code' in Magento/Framework/Code/Generator.php» Magento 2.2 issue?
(Dmitry Fedyuk) #2

@Anant_Thakur To fix this issue, you need to do exactly that Magento tells you: provide “read and write permissions on generated directory”.

0 Likes