Why should we expire a locked account for totally prevent to access?

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











up vote
2
down vote

favorite












from man usermod



Note: if you wish to lock the account (not only access with a
password), you should also set the EXPIRE_DATE to 1.


Why should we expire a locked account to totally prevent access to the account? What will happen if I do not expire a locked account?









share



























    up vote
    2
    down vote

    favorite












    from man usermod



    Note: if you wish to lock the account (not only access with a
    password), you should also set the EXPIRE_DATE to 1.


    Why should we expire a locked account to totally prevent access to the account? What will happen if I do not expire a locked account?









    share

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      from man usermod



      Note: if you wish to lock the account (not only access with a
      password), you should also set the EXPIRE_DATE to 1.


      Why should we expire a locked account to totally prevent access to the account? What will happen if I do not expire a locked account?









      share















      from man usermod



      Note: if you wish to lock the account (not only access with a
      password), you should also set the EXPIRE_DATE to 1.


      Why should we expire a locked account to totally prevent access to the account? What will happen if I do not expire a locked account?







      users accounts usermod





      share














      share












      share



      share








      edited 59 mins ago









      George Udosen

      17.6k93963




      17.6k93963










      asked 2 hours ago









      Sinoosh

      7571619




      7571619




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          usermod -L actually only locks the user's password, so user still is able to login using other methods for example using a ssh session.



          But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way.






          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%2f1083252%2fwhy-should-we-expire-a-locked-account-for-totally-prevent-to-access%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
            3
            down vote













            usermod -L actually only locks the user's password, so user still is able to login using other methods for example using a ssh session.



            But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way.






            share|improve this answer


























              up vote
              3
              down vote













              usermod -L actually only locks the user's password, so user still is able to login using other methods for example using a ssh session.



              But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way.






              share|improve this answer
























                up vote
                3
                down vote










                up vote
                3
                down vote









                usermod -L actually only locks the user's password, so user still is able to login using other methods for example using a ssh session.



                But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way.






                share|improve this answer














                usermod -L actually only locks the user's password, so user still is able to login using other methods for example using a ssh session.



                But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 21 mins ago

























                answered 50 mins ago









                Ravexina

                29.4k147199




                29.4k147199



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1083252%2fwhy-should-we-expire-a-locked-account-for-totally-prevent-to-access%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    What does second last employer means? [closed]

                    One-line joke