Fix Broken File Permissions On Ubuntu Server [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite













This question already has an answer here:



  • Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

    2 answers



  • chown recursively changed permissions

    1 answer



  • What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

    7 answers



I have a VPS running Ubuntu 16.04



I changed the owner of the root directory (/) recursively to root.



  • I was young and stupid (this happened about an hour ago but never mind).

  • Various things don't work correctly now including a website in the /var/www/html folder.

  • I searched far and wide for a solution but only found either OS-specific instructions which didn't work for me or the instruction to reinstall which, as you might guess, is not what I want to do.

  • I'm looking for a way to restore all file and folder permissions to what they were before without individually finding and changing them.

  • If someone provides a link with instructions which might not be understood by a noob who goes around changing permissions recursively in the root of a linux server then please explain or simplify what the link says.

Thank you all in advance and I hope this issue gets solved as soon as possible.



-user9123










share|improve this question













marked as duplicate by Byte Commander, Zanna, Eric Carvalho, karel, Fabby Mar 17 at 20:11


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.


















    up vote
    1
    down vote

    favorite













    This question already has an answer here:



    • Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

      2 answers



    • chown recursively changed permissions

      1 answer



    • What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

      7 answers



    I have a VPS running Ubuntu 16.04



    I changed the owner of the root directory (/) recursively to root.



    • I was young and stupid (this happened about an hour ago but never mind).

    • Various things don't work correctly now including a website in the /var/www/html folder.

    • I searched far and wide for a solution but only found either OS-specific instructions which didn't work for me or the instruction to reinstall which, as you might guess, is not what I want to do.

    • I'm looking for a way to restore all file and folder permissions to what they were before without individually finding and changing them.

    • If someone provides a link with instructions which might not be understood by a noob who goes around changing permissions recursively in the root of a linux server then please explain or simplify what the link says.

    Thank you all in advance and I hope this issue gets solved as soon as possible.



    -user9123










    share|improve this question













    marked as duplicate by Byte Commander, Zanna, Eric Carvalho, karel, Fabby Mar 17 at 20:11


    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.
















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite












      This question already has an answer here:



      • Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

        2 answers



      • chown recursively changed permissions

        1 answer



      • What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

        7 answers



      I have a VPS running Ubuntu 16.04



      I changed the owner of the root directory (/) recursively to root.



      • I was young and stupid (this happened about an hour ago but never mind).

      • Various things don't work correctly now including a website in the /var/www/html folder.

      • I searched far and wide for a solution but only found either OS-specific instructions which didn't work for me or the instruction to reinstall which, as you might guess, is not what I want to do.

      • I'm looking for a way to restore all file and folder permissions to what they were before without individually finding and changing them.

      • If someone provides a link with instructions which might not be understood by a noob who goes around changing permissions recursively in the root of a linux server then please explain or simplify what the link says.

      Thank you all in advance and I hope this issue gets solved as soon as possible.



      -user9123










      share|improve this question














      This question already has an answer here:



      • Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

        2 answers



      • chown recursively changed permissions

        1 answer



      • What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

        7 answers



      I have a VPS running Ubuntu 16.04



      I changed the owner of the root directory (/) recursively to root.



      • I was young and stupid (this happened about an hour ago but never mind).

      • Various things don't work correctly now including a website in the /var/www/html folder.

      • I searched far and wide for a solution but only found either OS-specific instructions which didn't work for me or the instruction to reinstall which, as you might guess, is not what I want to do.

      • I'm looking for a way to restore all file and folder permissions to what they were before without individually finding and changing them.

      • If someone provides a link with instructions which might not be understood by a noob who goes around changing permissions recursively in the root of a linux server then please explain or simplify what the link says.

      Thank you all in advance and I hope this issue gets solved as soon as possible.



      -user9123





      This question already has an answer here:



      • Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

        2 answers



      • chown recursively changed permissions

        1 answer



      • What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

        7 answers







      server permissions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 14 at 21:26









      user9123

      183




      183




      marked as duplicate by Byte Commander, Zanna, Eric Carvalho, karel, Fabby Mar 17 at 20:11


      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 Byte Commander, Zanna, Eric Carvalho, karel, Fabby Mar 17 at 20:11


      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.



























          active

          oldest

          votes






















          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

          `kcmshell` modules relation with `/usr/share/applications`

          How to enroll fingerprints to Ubuntu 17.10 with VFS491