Running Indexer gives Permission denied error [duplicate]Magento 2 folder/file permissionscommand line user does not have read and write permissions on generated directoryMagento 2.1 pub/static permissionWhy do i have to always run the commands to clean cache in Magento 2.1.8?Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are runningProblem with CLIERROR MagentoFrameworkExceptionLocalizedException: Field title can't be empty in Model/Theme.php:337How to solve newly generated magento 2 file permission issue in ubantu 18.04?Magento2 Installation Error by 0%Magento 2: wrong permission generate in generated folderMagento 2 + Permissions issue in Ubntu 16.04

What exactly "triggers an additional time" in the interaction between Afterlife and Teysa Karlov?

Should I list a completely different profession in my technical resume?

one-hot-encoding categorical data gives error

What to bootstrap for hypothesis testing

A life of PhD: is it feasible?

Find all letter Combinations of a Phone Number

Can a Warforged suffer from magical exhaustion?

What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?

Why do the TIE Fighter pilot helmets have similar ridges as the rebels?

In American Politics, why is the Justice Department under the President?

How to befriend someone who doesn't like to talk?

How do I type a hyphen in iOS 12?

What is Gilligan's full Name?

C++ logging library

Forgot passport for Alaska cruise (Anchorage to Vancouver)

What is the STRONGEST end-of-line knot to use if you want to use a steel-thimble at the end, so that you've got a steel-eyelet at the end of the line?

Why is the distribution of dark matter in a Galaxy different from the distribution of normal matter?

Are regulatory compliance checks performed within the EU bloc?

Why do I seem to lose data using this bash pipe construction?

What class is best to play when a level behind the rest of the party?

What's the best way to quit a job mostly because of money?

Is it true that "only photographers care about noise"?

ASCII Meme Arrow Generator

What is the theme of analysis?



Running Indexer gives Permission denied error [duplicate]


Magento 2 folder/file permissionscommand line user does not have read and write permissions on generated directoryMagento 2.1 pub/static permissionWhy do i have to always run the commands to clean cache in Magento 2.1.8?Magento 2: CronJob bug? MySQL is always running at 30% usage and many php processes are runningProblem with CLIERROR MagentoFrameworkExceptionLocalizedException: Field title can't be empty in Model/Theme.php:337How to solve newly generated magento 2 file permission issue in ubantu 18.04?Magento2 Installation Error by 0%Magento 2: wrong permission generate in generated folderMagento 2 + Permissions issue in Ubntu 16.04






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1
















This question already has an answer here:



  • Magento 2 folder/file permissions

    12 answers



I am trying to run indexer. but when i enter command CLI shows this error
http://prntscr.com/ntzzlt



also i always need to give permission to generated folder, Pub folder and Var Folder after running Setup Upgrade




sudo chmod 777 -R generated, pub, var











share|improve this question













marked as duplicate by sv3n, Jai, Muhammad Hasham, Shoaib Munir, saravanavelu May 28 at 4:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

    – Khoa TruongDinh
    May 27 at 16:07

















1
















This question already has an answer here:



  • Magento 2 folder/file permissions

    12 answers



I am trying to run indexer. but when i enter command CLI shows this error
http://prntscr.com/ntzzlt



also i always need to give permission to generated folder, Pub folder and Var Folder after running Setup Upgrade




sudo chmod 777 -R generated, pub, var











share|improve this question













marked as duplicate by sv3n, Jai, Muhammad Hasham, Shoaib Munir, saravanavelu May 28 at 4:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

    – Khoa TruongDinh
    May 27 at 16:07













1












1








1









This question already has an answer here:



  • Magento 2 folder/file permissions

    12 answers



I am trying to run indexer. but when i enter command CLI shows this error
http://prntscr.com/ntzzlt



also i always need to give permission to generated folder, Pub folder and Var Folder after running Setup Upgrade




sudo chmod 777 -R generated, pub, var











share|improve this question















This question already has an answer here:



  • Magento 2 folder/file permissions

    12 answers



I am trying to run indexer. but when i enter command CLI shows this error
http://prntscr.com/ntzzlt



also i always need to give permission to generated folder, Pub folder and Var Folder after running Setup Upgrade




sudo chmod 777 -R generated, pub, var






This question already has an answer here:



  • Magento 2 folder/file permissions

    12 answers







magento2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 27 at 15:36









i_ali55i_ali55

483112




483112




marked as duplicate by sv3n, Jai, Muhammad Hasham, Shoaib Munir, saravanavelu May 28 at 4:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by sv3n, Jai, Muhammad Hasham, Shoaib Munir, saravanavelu May 28 at 4:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

    – Khoa TruongDinh
    May 27 at 16:07

















  • You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

    – Khoa TruongDinh
    May 27 at 16:07
















You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

– Khoa TruongDinh
May 27 at 16:07





You should follow this guide: devdocs.magento.com/guides/v2.3/install-gde/prereq/…. I'm pretty sure that's the correct solution.

– Khoa TruongDinh
May 27 at 16:07










2 Answers
2






active

oldest

votes


















1















sudo (Super User DO) command in Linux is generally used as a prefix of some command that only superuser are allowed to run.



If you prefix
“sudo” with any command, it will run that command with elevated
privileges or in other words allow a user with proper permissions to
execute a command as another user, such as the superuser. This is the
equivalent of “run as administrator” option in Windows. The option of
sudo lets us have multiple administrators.




Using sudo Try To Reindex :-



 sudo php bin/magento indexer:reindex





share|improve this answer

























  • i need permanent solution, why i need to use sudo always?

    – i_ali55
    May 27 at 15:39











  • It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

    – Rk Rathod
    May 27 at 15:40












  • understand ????

    – Rk Rathod
    May 27 at 15:43











  • yes, but there must be any permanent sol,

    – i_ali55
    May 27 at 15:47











  • yes its per solution

    – Rk Rathod
    May 27 at 15:48


















1














Execute these commands as a root user



find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w +

find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws +


Set the ownership to Magento user and web user using



sudo chown -R <Magento user>:<web server group> .


The error which you are facing is due to wrong ownership. If you navigate to the specified folder and run ll you can find the ownership for the file is assigned to root user which is preventing from removing the generated files as Magento user.



Please at any case don't give 777 permission if so please revert it back.



Don't run any command as root user as it might cause the new static files to be created with root ownership which might prevent web user to access such files forcing you to provide 777 permission. So run Magento commands as Magento user.






share|improve this answer































    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1















    sudo (Super User DO) command in Linux is generally used as a prefix of some command that only superuser are allowed to run.



    If you prefix
    “sudo” with any command, it will run that command with elevated
    privileges or in other words allow a user with proper permissions to
    execute a command as another user, such as the superuser. This is the
    equivalent of “run as administrator” option in Windows. The option of
    sudo lets us have multiple administrators.




    Using sudo Try To Reindex :-



     sudo php bin/magento indexer:reindex





    share|improve this answer

























    • i need permanent solution, why i need to use sudo always?

      – i_ali55
      May 27 at 15:39











    • It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

      – Rk Rathod
      May 27 at 15:40












    • understand ????

      – Rk Rathod
      May 27 at 15:43











    • yes, but there must be any permanent sol,

      – i_ali55
      May 27 at 15:47











    • yes its per solution

      – Rk Rathod
      May 27 at 15:48















    1















    sudo (Super User DO) command in Linux is generally used as a prefix of some command that only superuser are allowed to run.



    If you prefix
    “sudo” with any command, it will run that command with elevated
    privileges or in other words allow a user with proper permissions to
    execute a command as another user, such as the superuser. This is the
    equivalent of “run as administrator” option in Windows. The option of
    sudo lets us have multiple administrators.




    Using sudo Try To Reindex :-



     sudo php bin/magento indexer:reindex





    share|improve this answer

























    • i need permanent solution, why i need to use sudo always?

      – i_ali55
      May 27 at 15:39











    • It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

      – Rk Rathod
      May 27 at 15:40












    • understand ????

      – Rk Rathod
      May 27 at 15:43











    • yes, but there must be any permanent sol,

      – i_ali55
      May 27 at 15:47











    • yes its per solution

      – Rk Rathod
      May 27 at 15:48













    1












    1








    1








    sudo (Super User DO) command in Linux is generally used as a prefix of some command that only superuser are allowed to run.



    If you prefix
    “sudo” with any command, it will run that command with elevated
    privileges or in other words allow a user with proper permissions to
    execute a command as another user, such as the superuser. This is the
    equivalent of “run as administrator” option in Windows. The option of
    sudo lets us have multiple administrators.




    Using sudo Try To Reindex :-



     sudo php bin/magento indexer:reindex





    share|improve this answer
















    sudo (Super User DO) command in Linux is generally used as a prefix of some command that only superuser are allowed to run.



    If you prefix
    “sudo” with any command, it will run that command with elevated
    privileges or in other words allow a user with proper permissions to
    execute a command as another user, such as the superuser. This is the
    equivalent of “run as administrator” option in Windows. The option of
    sudo lets us have multiple administrators.




    Using sudo Try To Reindex :-



     sudo php bin/magento indexer:reindex






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 27 at 15:59

























    answered May 27 at 15:38









    Rk RathodRk Rathod

    2,260315




    2,260315












    • i need permanent solution, why i need to use sudo always?

      – i_ali55
      May 27 at 15:39











    • It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

      – Rk Rathod
      May 27 at 15:40












    • understand ????

      – Rk Rathod
      May 27 at 15:43











    • yes, but there must be any permanent sol,

      – i_ali55
      May 27 at 15:47











    • yes its per solution

      – Rk Rathod
      May 27 at 15:48

















    • i need permanent solution, why i need to use sudo always?

      – i_ali55
      May 27 at 15:39











    • It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

      – Rk Rathod
      May 27 at 15:40












    • understand ????

      – Rk Rathod
      May 27 at 15:43











    • yes, but there must be any permanent sol,

      – i_ali55
      May 27 at 15:47











    • yes its per solution

      – Rk Rathod
      May 27 at 15:48
















    i need permanent solution, why i need to use sudo always?

    – i_ali55
    May 27 at 15:39





    i need permanent solution, why i need to use sudo always?

    – i_ali55
    May 27 at 15:39













    It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

    – Rk Rathod
    May 27 at 15:40






    It stands for “super user do!”..it will run that command with elevated privileges. Elevated privileges are required to perform certain administrative tasks.

    – Rk Rathod
    May 27 at 15:40














    understand ????

    – Rk Rathod
    May 27 at 15:43





    understand ????

    – Rk Rathod
    May 27 at 15:43













    yes, but there must be any permanent sol,

    – i_ali55
    May 27 at 15:47





    yes, but there must be any permanent sol,

    – i_ali55
    May 27 at 15:47













    yes its per solution

    – Rk Rathod
    May 27 at 15:48





    yes its per solution

    – Rk Rathod
    May 27 at 15:48













    1














    Execute these commands as a root user



    find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w +

    find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws +


    Set the ownership to Magento user and web user using



    sudo chown -R <Magento user>:<web server group> .


    The error which you are facing is due to wrong ownership. If you navigate to the specified folder and run ll you can find the ownership for the file is assigned to root user which is preventing from removing the generated files as Magento user.



    Please at any case don't give 777 permission if so please revert it back.



    Don't run any command as root user as it might cause the new static files to be created with root ownership which might prevent web user to access such files forcing you to provide 777 permission. So run Magento commands as Magento user.






    share|improve this answer





























      1














      Execute these commands as a root user



      find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w +

      find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws +


      Set the ownership to Magento user and web user using



      sudo chown -R <Magento user>:<web server group> .


      The error which you are facing is due to wrong ownership. If you navigate to the specified folder and run ll you can find the ownership for the file is assigned to root user which is preventing from removing the generated files as Magento user.



      Please at any case don't give 777 permission if so please revert it back.



      Don't run any command as root user as it might cause the new static files to be created with root ownership which might prevent web user to access such files forcing you to provide 777 permission. So run Magento commands as Magento user.






      share|improve this answer



























        1












        1








        1







        Execute these commands as a root user



        find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w +

        find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws +


        Set the ownership to Magento user and web user using



        sudo chown -R <Magento user>:<web server group> .


        The error which you are facing is due to wrong ownership. If you navigate to the specified folder and run ll you can find the ownership for the file is assigned to root user which is preventing from removing the generated files as Magento user.



        Please at any case don't give 777 permission if so please revert it back.



        Don't run any command as root user as it might cause the new static files to be created with root ownership which might prevent web user to access such files forcing you to provide 777 permission. So run Magento commands as Magento user.






        share|improve this answer















        Execute these commands as a root user



        find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w +

        find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws +


        Set the ownership to Magento user and web user using



        sudo chown -R <Magento user>:<web server group> .


        The error which you are facing is due to wrong ownership. If you navigate to the specified folder and run ll you can find the ownership for the file is assigned to root user which is preventing from removing the generated files as Magento user.



        Please at any case don't give 777 permission if so please revert it back.



        Don't run any command as root user as it might cause the new static files to be created with root ownership which might prevent web user to access such files forcing you to provide 777 permission. So run Magento commands as Magento user.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 27 at 16:20

























        answered May 27 at 16:15









        Raj Mohan RRaj Mohan R

        1,109311




        1,109311













            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020