Permission mix-up on Mint

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











up vote
1
down vote

favorite












So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.










share|improve this question















migrated from askubuntu.com Nov 24 '15 at 22:01


This question came from our site for Ubuntu users and developers.










  • 1




    And you are running Mint or Ubuntu?
    – user103789
    Nov 24 '15 at 20:46










  • @ParanoidPanda Mint. I updated the question
    – Wilhelm Erasmus
    Nov 24 '15 at 21:56










  • Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:07










  • @Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
    – Wilhelm Erasmus
    Nov 24 '15 at 22:14










  • Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:21














up vote
1
down vote

favorite












So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.










share|improve this question















migrated from askubuntu.com Nov 24 '15 at 22:01


This question came from our site for Ubuntu users and developers.










  • 1




    And you are running Mint or Ubuntu?
    – user103789
    Nov 24 '15 at 20:46










  • @ParanoidPanda Mint. I updated the question
    – Wilhelm Erasmus
    Nov 24 '15 at 21:56










  • Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:07










  • @Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
    – Wilhelm Erasmus
    Nov 24 '15 at 22:14










  • Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:21












up vote
1
down vote

favorite









up vote
1
down vote

favorite











So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.










share|improve this question















So recently I accidentally started changing all the permissions in root to my unprivileged account :(.
It happened because I was switching between users and shells and the directory changed to / without me noticing.
Luckily I had -c enabled so I realised there was something wrong quite quickly(just after the home dir).
I then ran chown root:root -R (all files owned by me in /)
Now I'm having problems with xscreensaver and su'ing reurns failed auth. I can still use sudo though.
Is there any maybe a list of permissions somewhere?
I'm running the latest Mint XFCE.







permissions screensaver chown xscreensaver






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 35 mins ago









Rui F Ribeiro

37.3k1374118




37.3k1374118










asked Nov 24 '15 at 20:37









Wilhelm Erasmus

200112




200112




migrated from askubuntu.com Nov 24 '15 at 22:01


This question came from our site for Ubuntu users and developers.






migrated from askubuntu.com Nov 24 '15 at 22:01


This question came from our site for Ubuntu users and developers.









  • 1




    And you are running Mint or Ubuntu?
    – user103789
    Nov 24 '15 at 20:46










  • @ParanoidPanda Mint. I updated the question
    – Wilhelm Erasmus
    Nov 24 '15 at 21:56










  • Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:07










  • @Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
    – Wilhelm Erasmus
    Nov 24 '15 at 22:14










  • Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:21












  • 1




    And you are running Mint or Ubuntu?
    – user103789
    Nov 24 '15 at 20:46










  • @ParanoidPanda Mint. I updated the question
    – Wilhelm Erasmus
    Nov 24 '15 at 21:56










  • Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:07










  • @Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
    – Wilhelm Erasmus
    Nov 24 '15 at 22:14










  • Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
    – Sergiy Kolodyazhnyy
    Nov 24 '15 at 22:21







1




1




And you are running Mint or Ubuntu?
– user103789
Nov 24 '15 at 20:46




And you are running Mint or Ubuntu?
– user103789
Nov 24 '15 at 20:46












@ParanoidPanda Mint. I updated the question
– Wilhelm Erasmus
Nov 24 '15 at 21:56




@ParanoidPanda Mint. I updated the question
– Wilhelm Erasmus
Nov 24 '15 at 21:56












Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
– Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07




Well , since you recursively chowned everything, you also have chowned everything in your home . . . .Do chown -R yourUsername:yourUsername /home/yourUsername to get your stuff back to your ownership
– Sergiy Kolodyazhnyy
Nov 24 '15 at 22:07












@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
– Wilhelm Erasmus
Nov 24 '15 at 22:14




@Serg The problem is that most of the root filesystem was owned by me instead of root. I was attempting to do chown -R yourUsername:yourUsername ./ but I was in / not ~
– Wilhelm Erasmus
Nov 24 '15 at 22:14












Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
– Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21




Oh, I see. Changing ownership of everything on the filesystem back to root user will be the easiest next to reinstalling. But there are many direcotries in files , such as /etc/shadow or /etc/mtab.fuselock that have different group ownership, so if you chown everything to root recursivelly you still have to go back and fix many other files.
– Sergiy Kolodyazhnyy
Nov 24 '15 at 22:21










2 Answers
2






active

oldest

votes

















up vote
0
down vote













This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.



Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.



Alternatively find another computer, install virtual box, install mint, and then run:



find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.



You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.



Actually, that would be a good penance as well as a useful technical exercise. :)






share|improve this answer



























    up vote
    0
    down vote













    I found the simplest method of fixing all the permissions.
    https://serverfault.com/a/117149/191095



    getfacl -R / > /root/perms.acl
    setfacl --restore=/root/perms.acl


    It works perfectly. Now my xscreensaver and logging in as root work again :-)






    share|improve this answer






















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f245263%2fpermission-mix-up-on-mint%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.



      Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.



      Alternatively find another computer, install virtual box, install mint, and then run:



      find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.



      You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.



      Actually, that would be a good penance as well as a useful technical exercise. :)






      share|improve this answer
























        up vote
        0
        down vote













        This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.



        Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.



        Alternatively find another computer, install virtual box, install mint, and then run:



        find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.



        You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.



        Actually, that would be a good penance as well as a useful technical exercise. :)






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.



          Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.



          Alternatively find another computer, install virtual box, install mint, and then run:



          find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.



          You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.



          Actually, that would be a good penance as well as a useful technical exercise. :)






          share|improve this answer












          This is pretty much an "+++ Out of Cheese Error. Redo From Start. +++" situation.



          Lots of files down in the guts run as different users/groups and while most things can live as "root:root" if this is going to be a long running system you're better off backing up /home and repaving.



          Alternatively find another computer, install virtual box, install mint, and then run:



          find ./ | xargs ls -lth | awk ' print $1"t"$3":"$4" "$NF ' > /var/tmp/perms.



          You should then be able to copy perms over to your mint computer, and write a script that reads that file and sets the right user/group ownership.



          Actually, that would be a good penance as well as a useful technical exercise. :)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 25 '15 at 0:37









          Petro

          39115




          39115






















              up vote
              0
              down vote













              I found the simplest method of fixing all the permissions.
              https://serverfault.com/a/117149/191095



              getfacl -R / > /root/perms.acl
              setfacl --restore=/root/perms.acl


              It works perfectly. Now my xscreensaver and logging in as root work again :-)






              share|improve this answer


























                up vote
                0
                down vote













                I found the simplest method of fixing all the permissions.
                https://serverfault.com/a/117149/191095



                getfacl -R / > /root/perms.acl
                setfacl --restore=/root/perms.acl


                It works perfectly. Now my xscreensaver and logging in as root work again :-)






                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I found the simplest method of fixing all the permissions.
                  https://serverfault.com/a/117149/191095



                  getfacl -R / > /root/perms.acl
                  setfacl --restore=/root/perms.acl


                  It works perfectly. Now my xscreensaver and logging in as root work again :-)






                  share|improve this answer














                  I found the simplest method of fixing all the permissions.
                  https://serverfault.com/a/117149/191095



                  getfacl -R / > /root/perms.acl
                  setfacl --restore=/root/perms.acl


                  It works perfectly. Now my xscreensaver and logging in as root work again :-)







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 13 '17 at 12:13









                  Community♦

                  1




                  1










                  answered Nov 25 '15 at 22:19









                  Wilhelm Erasmus

                  200112




                  200112



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f245263%2fpermission-mix-up-on-mint%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay