how to unlock passwd from the command “sudo passwd -l [user]”?

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








up vote
0
down vote

favorite












I locked the passwd for a user by using the command,



sudo passwd -l [user]


Then, how do I unlock the passwd for this user?










share|improve this question

















  • 1




    Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
    – Stefan Hamcke
    Feb 3 at 17:54















up vote
0
down vote

favorite












I locked the passwd for a user by using the command,



sudo passwd -l [user]


Then, how do I unlock the passwd for this user?










share|improve this question

















  • 1




    Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
    – Stefan Hamcke
    Feb 3 at 17:54













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I locked the passwd for a user by using the command,



sudo passwd -l [user]


Then, how do I unlock the passwd for this user?










share|improve this question













I locked the passwd for a user by using the command,



sudo passwd -l [user]


Then, how do I unlock the passwd for this user?







passwd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 at 17:41









Smile

454215




454215







  • 1




    Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
    – Stefan Hamcke
    Feb 3 at 17:54













  • 1




    Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
    – Stefan Hamcke
    Feb 3 at 17:54








1




1




Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
– Stefan Hamcke
Feb 3 at 17:54





Usually, you can consult the man page for a command in these situations. In your case, you could have typed man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.
– Stefan Hamcke
Feb 3 at 17:54











1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










sudo passwd -u [username]


from man passwd:




-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).







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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1002705%2fhow-to-unlock-passwd-from-the-command-sudo-passwd-l-user%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    sudo passwd -u [username]


    from man passwd:




    -u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).







    share|improve this answer
























      up vote
      4
      down vote



      accepted










      sudo passwd -u [username]


      from man passwd:




      -u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).







      share|improve this answer






















        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        sudo passwd -u [username]


        from man passwd:




        -u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).







        share|improve this answer












        sudo passwd -u [username]


        from man passwd:




        -u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 3 at 17:49









        Alessio Trivisonno

        563




        563



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002705%2fhow-to-unlock-passwd-from-the-command-sudo-passwd-l-user%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error