chage - Minimum number of days between password change

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












is there any difference in the "Minimum number of days between password change" set to -1 and 0?



or maybe both commas does the same policy?



chage -m -1 user
chage -m 0 user


thank you for any hint, I can't find -1 descirbed in chage manual but it is possible to set it to -1



Minimum number of days between password change : -1






share|improve this question

























    up vote
    1
    down vote

    favorite












    is there any difference in the "Minimum number of days between password change" set to -1 and 0?



    or maybe both commas does the same policy?



    chage -m -1 user
    chage -m 0 user


    thank you for any hint, I can't find -1 descirbed in chage manual but it is possible to set it to -1



    Minimum number of days between password change : -1






    share|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      is there any difference in the "Minimum number of days between password change" set to -1 and 0?



      or maybe both commas does the same policy?



      chage -m -1 user
      chage -m 0 user


      thank you for any hint, I can't find -1 descirbed in chage manual but it is possible to set it to -1



      Minimum number of days between password change : -1






      share|improve this question











      is there any difference in the "Minimum number of days between password change" set to -1 and 0?



      or maybe both commas does the same policy?



      chage -m -1 user
      chage -m 0 user


      thank you for any hint, I can't find -1 descirbed in chage manual but it is possible to set it to -1



      Minimum number of days between password change : -1








      share|improve this question










      share|improve this question




      share|improve this question









      asked Aug 3 at 20:00









      Tomek

      61




      61




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          If you take a look at the source for chage there's a comment that explains what -1 does:



          /*
          * new_fields - change the user's password aging information interactively.
          *
          * prompt the user for all of the password age values. set the fields
          * from the user's response, or leave alone if nothing was entered. The
          * value (-1) is used to indicate the field should be removed if possible.
          * any other negative value is an error. very large positive values will
          * be handled elsewhere.
          */


          So when you specify chage -m -1 <user> it's disabling the mindays field. So disabling it with a -1 vs. setting it to 0 would appear to have the same effect, when it comes to restricting the how frequently a user can change their password.



          References



          • github repo - shadow/src/chage.c





          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%2f460409%2fchage-minimum-number-of-days-between-password-change%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
            1
            down vote













            If you take a look at the source for chage there's a comment that explains what -1 does:



            /*
            * new_fields - change the user's password aging information interactively.
            *
            * prompt the user for all of the password age values. set the fields
            * from the user's response, or leave alone if nothing was entered. The
            * value (-1) is used to indicate the field should be removed if possible.
            * any other negative value is an error. very large positive values will
            * be handled elsewhere.
            */


            So when you specify chage -m -1 <user> it's disabling the mindays field. So disabling it with a -1 vs. setting it to 0 would appear to have the same effect, when it comes to restricting the how frequently a user can change their password.



            References



            • github repo - shadow/src/chage.c





            share|improve this answer



























              up vote
              1
              down vote













              If you take a look at the source for chage there's a comment that explains what -1 does:



              /*
              * new_fields - change the user's password aging information interactively.
              *
              * prompt the user for all of the password age values. set the fields
              * from the user's response, or leave alone if nothing was entered. The
              * value (-1) is used to indicate the field should be removed if possible.
              * any other negative value is an error. very large positive values will
              * be handled elsewhere.
              */


              So when you specify chage -m -1 <user> it's disabling the mindays field. So disabling it with a -1 vs. setting it to 0 would appear to have the same effect, when it comes to restricting the how frequently a user can change their password.



              References



              • github repo - shadow/src/chage.c





              share|improve this answer

























                up vote
                1
                down vote










                up vote
                1
                down vote









                If you take a look at the source for chage there's a comment that explains what -1 does:



                /*
                * new_fields - change the user's password aging information interactively.
                *
                * prompt the user for all of the password age values. set the fields
                * from the user's response, or leave alone if nothing was entered. The
                * value (-1) is used to indicate the field should be removed if possible.
                * any other negative value is an error. very large positive values will
                * be handled elsewhere.
                */


                So when you specify chage -m -1 <user> it's disabling the mindays field. So disabling it with a -1 vs. setting it to 0 would appear to have the same effect, when it comes to restricting the how frequently a user can change their password.



                References



                • github repo - shadow/src/chage.c





                share|improve this answer















                If you take a look at the source for chage there's a comment that explains what -1 does:



                /*
                * new_fields - change the user's password aging information interactively.
                *
                * prompt the user for all of the password age values. set the fields
                * from the user's response, or leave alone if nothing was entered. The
                * value (-1) is used to indicate the field should be removed if possible.
                * any other negative value is an error. very large positive values will
                * be handled elsewhere.
                */


                So when you specify chage -m -1 <user> it's disabling the mindays field. So disabling it with a -1 vs. setting it to 0 would appear to have the same effect, when it comes to restricting the how frequently a user can change their password.



                References



                • github repo - shadow/src/chage.c






                share|improve this answer















                share|improve this answer



                share|improve this answer








                edited Aug 4 at 0:39


























                answered Aug 4 at 0:31









                slm♦

                232k65479648




                232k65479648






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460409%2fchage-minimum-number-of-days-between-password-change%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?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?