Cannot unlock screen after manual lock in Ubuntu 17.04 with Unity












1















I have recently reinstalled Ubuntu 17.04 on a new laptop using full disk encryption, having forgotten to enable it the first time.
To save some time on configuration, I created a backup of my home complete directory and restored it in the new installation.



When I start the laptop I can login without any problem, but if the session get's locked I can't log back in again as usual and I get a "wrong password" message.



Using the terminal via CTRL+ALT+F1 accepts the password every time. It also works as a workaround to click "Change User" in the graphical session and then log back in.
I haven't yet found any useful information in any log files.










share|improve this question



























    1















    I have recently reinstalled Ubuntu 17.04 on a new laptop using full disk encryption, having forgotten to enable it the first time.
    To save some time on configuration, I created a backup of my home complete directory and restored it in the new installation.



    When I start the laptop I can login without any problem, but if the session get's locked I can't log back in again as usual and I get a "wrong password" message.



    Using the terminal via CTRL+ALT+F1 accepts the password every time. It also works as a workaround to click "Change User" in the graphical session and then log back in.
    I haven't yet found any useful information in any log files.










    share|improve this question

























      1












      1








      1








      I have recently reinstalled Ubuntu 17.04 on a new laptop using full disk encryption, having forgotten to enable it the first time.
      To save some time on configuration, I created a backup of my home complete directory and restored it in the new installation.



      When I start the laptop I can login without any problem, but if the session get's locked I can't log back in again as usual and I get a "wrong password" message.



      Using the terminal via CTRL+ALT+F1 accepts the password every time. It also works as a workaround to click "Change User" in the graphical session and then log back in.
      I haven't yet found any useful information in any log files.










      share|improve this question














      I have recently reinstalled Ubuntu 17.04 on a new laptop using full disk encryption, having forgotten to enable it the first time.
      To save some time on configuration, I created a backup of my home complete directory and restored it in the new installation.



      When I start the laptop I can login without any problem, but if the session get's locked I can't log back in again as usual and I get a "wrong password" message.



      Using the terminal via CTRL+ALT+F1 accepts the password every time. It also works as a workaround to click "Change User" in the graphical session and then log back in.
      I haven't yet found any useful information in any log files.







      login password encryption 17.04 lock-screen






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 6 '17 at 15:57









      mrm1st3rmrm1st3r

      63




      63






















          2 Answers
          2






          active

          oldest

          votes


















          0














          It seems that a misguided try to restore the backupped /etc direcory caused the error. as Lock screen - password incorrect suggests, the /etc/gshadow and /etc/shadow were owned by root:root instead of root:shadow.






          share|improve this answer































            0














            I had the same issue on Ubuntu 18.04 + Gnome desktop + lightdm.



            But initially, I switched back to gnome from unity and left lightdm as is, so when I had second language enabled and lock the screen it seems that Ubuntu didn't switch language to English properly. So I managed to create additional user with digits-only password to reset my main account password when it happens.



            Then I though that display manager may be the issue, so I've switched back to gdm3 and all worked normally.



            (trying to be more clear, probably I'll try to reproduce that)




            1. Install Ubuntu 18.04

            2. sudo apt install ubuntu-unity-desktop

            3. select lightdm as a default window manager

            4. return back to gnome

            5. switch keyboard to the second language

            6. lock the screen by Win+L

            7. Password is incorrect


            8. sudo dpkg-reconfigure gdm3, choose gdm3, reboot or re-login

            9. lock screen in any active keyboard language

            10. Password working as a charm


            If I'm not the only one, that should be reported to Ubuntu bugs, surely






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f962583%2fcannot-unlock-screen-after-manual-lock-in-ubuntu-17-04-with-unity%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              It seems that a misguided try to restore the backupped /etc direcory caused the error. as Lock screen - password incorrect suggests, the /etc/gshadow and /etc/shadow were owned by root:root instead of root:shadow.






              share|improve this answer




























                0














                It seems that a misguided try to restore the backupped /etc direcory caused the error. as Lock screen - password incorrect suggests, the /etc/gshadow and /etc/shadow were owned by root:root instead of root:shadow.






                share|improve this answer


























                  0












                  0








                  0







                  It seems that a misguided try to restore the backupped /etc direcory caused the error. as Lock screen - password incorrect suggests, the /etc/gshadow and /etc/shadow were owned by root:root instead of root:shadow.






                  share|improve this answer













                  It seems that a misguided try to restore the backupped /etc direcory caused the error. as Lock screen - password incorrect suggests, the /etc/gshadow and /etc/shadow were owned by root:root instead of root:shadow.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 7 '17 at 19:26









                  mrm1st3rmrm1st3r

                  63




                  63

























                      0














                      I had the same issue on Ubuntu 18.04 + Gnome desktop + lightdm.



                      But initially, I switched back to gnome from unity and left lightdm as is, so when I had second language enabled and lock the screen it seems that Ubuntu didn't switch language to English properly. So I managed to create additional user with digits-only password to reset my main account password when it happens.



                      Then I though that display manager may be the issue, so I've switched back to gdm3 and all worked normally.



                      (trying to be more clear, probably I'll try to reproduce that)




                      1. Install Ubuntu 18.04

                      2. sudo apt install ubuntu-unity-desktop

                      3. select lightdm as a default window manager

                      4. return back to gnome

                      5. switch keyboard to the second language

                      6. lock the screen by Win+L

                      7. Password is incorrect


                      8. sudo dpkg-reconfigure gdm3, choose gdm3, reboot or re-login

                      9. lock screen in any active keyboard language

                      10. Password working as a charm


                      If I'm not the only one, that should be reported to Ubuntu bugs, surely






                      share|improve this answer




























                        0














                        I had the same issue on Ubuntu 18.04 + Gnome desktop + lightdm.



                        But initially, I switched back to gnome from unity and left lightdm as is, so when I had second language enabled and lock the screen it seems that Ubuntu didn't switch language to English properly. So I managed to create additional user with digits-only password to reset my main account password when it happens.



                        Then I though that display manager may be the issue, so I've switched back to gdm3 and all worked normally.



                        (trying to be more clear, probably I'll try to reproduce that)




                        1. Install Ubuntu 18.04

                        2. sudo apt install ubuntu-unity-desktop

                        3. select lightdm as a default window manager

                        4. return back to gnome

                        5. switch keyboard to the second language

                        6. lock the screen by Win+L

                        7. Password is incorrect


                        8. sudo dpkg-reconfigure gdm3, choose gdm3, reboot or re-login

                        9. lock screen in any active keyboard language

                        10. Password working as a charm


                        If I'm not the only one, that should be reported to Ubuntu bugs, surely






                        share|improve this answer


























                          0












                          0








                          0







                          I had the same issue on Ubuntu 18.04 + Gnome desktop + lightdm.



                          But initially, I switched back to gnome from unity and left lightdm as is, so when I had second language enabled and lock the screen it seems that Ubuntu didn't switch language to English properly. So I managed to create additional user with digits-only password to reset my main account password when it happens.



                          Then I though that display manager may be the issue, so I've switched back to gdm3 and all worked normally.



                          (trying to be more clear, probably I'll try to reproduce that)




                          1. Install Ubuntu 18.04

                          2. sudo apt install ubuntu-unity-desktop

                          3. select lightdm as a default window manager

                          4. return back to gnome

                          5. switch keyboard to the second language

                          6. lock the screen by Win+L

                          7. Password is incorrect


                          8. sudo dpkg-reconfigure gdm3, choose gdm3, reboot or re-login

                          9. lock screen in any active keyboard language

                          10. Password working as a charm


                          If I'm not the only one, that should be reported to Ubuntu bugs, surely






                          share|improve this answer













                          I had the same issue on Ubuntu 18.04 + Gnome desktop + lightdm.



                          But initially, I switched back to gnome from unity and left lightdm as is, so when I had second language enabled and lock the screen it seems that Ubuntu didn't switch language to English properly. So I managed to create additional user with digits-only password to reset my main account password when it happens.



                          Then I though that display manager may be the issue, so I've switched back to gdm3 and all worked normally.



                          (trying to be more clear, probably I'll try to reproduce that)




                          1. Install Ubuntu 18.04

                          2. sudo apt install ubuntu-unity-desktop

                          3. select lightdm as a default window manager

                          4. return back to gnome

                          5. switch keyboard to the second language

                          6. lock the screen by Win+L

                          7. Password is incorrect


                          8. sudo dpkg-reconfigure gdm3, choose gdm3, reboot or re-login

                          9. lock screen in any active keyboard language

                          10. Password working as a charm


                          If I'm not the only one, that should be reported to Ubuntu bugs, surely







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 22 at 11:37









                          QooPQooP

                          12




                          12






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f962583%2fcannot-unlock-screen-after-manual-lock-in-ubuntu-17-04-with-unity%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Questions related to Moebius Transform of Characteristic Function of the Primes

                              List of scandals in India

                              Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?