How to force change linux password even if similar as previous












18















I am trying to change my current password in Red Hat Enterprise Linux Server release 5.10 (Tikanga)
but it says my new password is too similar. Is there any way to force change ?



$ passwd
Changing password for user XY
Changing password for XY
(current) UNIX password:
New UNIX password:
BAD PASSWORD: is too similar to the old one
New UNIX password:









share|improve this question























  • Duplicate: superuser.com/questions/130922/…

    – darnir
    Sep 17 '14 at 8:06











  • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:56











  • If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

    – darnir
    Sep 18 '14 at 9:18











  • IMHO that mentioned question has no really clear answer.

    – To Kra
    Sep 19 '14 at 9:59











  • @darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

    – Ramesh
    Sep 19 '14 at 16:18
















18















I am trying to change my current password in Red Hat Enterprise Linux Server release 5.10 (Tikanga)
but it says my new password is too similar. Is there any way to force change ?



$ passwd
Changing password for user XY
Changing password for XY
(current) UNIX password:
New UNIX password:
BAD PASSWORD: is too similar to the old one
New UNIX password:









share|improve this question























  • Duplicate: superuser.com/questions/130922/…

    – darnir
    Sep 17 '14 at 8:06











  • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:56











  • If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

    – darnir
    Sep 18 '14 at 9:18











  • IMHO that mentioned question has no really clear answer.

    – To Kra
    Sep 19 '14 at 9:59











  • @darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

    – Ramesh
    Sep 19 '14 at 16:18














18












18








18


1






I am trying to change my current password in Red Hat Enterprise Linux Server release 5.10 (Tikanga)
but it says my new password is too similar. Is there any way to force change ?



$ passwd
Changing password for user XY
Changing password for XY
(current) UNIX password:
New UNIX password:
BAD PASSWORD: is too similar to the old one
New UNIX password:









share|improve this question














I am trying to change my current password in Red Hat Enterprise Linux Server release 5.10 (Tikanga)
but it says my new password is too similar. Is there any way to force change ?



$ passwd
Changing password for user XY
Changing password for XY
(current) UNIX password:
New UNIX password:
BAD PASSWORD: is too similar to the old one
New UNIX password:






linux rhel password






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 17 '14 at 7:55









To KraTo Kra

208238




208238













  • Duplicate: superuser.com/questions/130922/…

    – darnir
    Sep 17 '14 at 8:06











  • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:56











  • If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

    – darnir
    Sep 18 '14 at 9:18











  • IMHO that mentioned question has no really clear answer.

    – To Kra
    Sep 19 '14 at 9:59











  • @darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

    – Ramesh
    Sep 19 '14 at 16:18



















  • Duplicate: superuser.com/questions/130922/…

    – darnir
    Sep 17 '14 at 8:06











  • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:56











  • If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

    – darnir
    Sep 18 '14 at 9:18











  • IMHO that mentioned question has no really clear answer.

    – To Kra
    Sep 19 '14 at 9:59











  • @darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

    – Ramesh
    Sep 19 '14 at 16:18

















Duplicate: superuser.com/questions/130922/…

– darnir
Sep 17 '14 at 8:06





Duplicate: superuser.com/questions/130922/…

– darnir
Sep 17 '14 at 8:06













I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

– To Kra
Sep 17 '14 at 11:56





I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

– To Kra
Sep 17 '14 at 11:56













If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

– darnir
Sep 18 '14 at 9:18





If you had bothered to read the answers to that question, you'd have realized why you're in the same position and how to resolve your problem.

– darnir
Sep 18 '14 at 9:18













IMHO that mentioned question has no really clear answer.

– To Kra
Sep 19 '14 at 9:59





IMHO that mentioned question has no really clear answer.

– To Kra
Sep 19 '14 at 9:59













@darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

– Ramesh
Sep 19 '14 at 16:18





@darnir, duplicates are when the question is already asked in same SO site. This one can not be a duplicate :)

– Ramesh
Sep 19 '14 at 16:18










3 Answers
3






active

oldest

votes


















20














If you can run the command as root, you can force the change to be accepted.



Example:



$ sudo passwd myusername
Changing password for user myusername.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.





share|improve this answer


























  • This is the perfect answer

    – Jadda
    Oct 3 '18 at 19:03



















6














Short answer: You can't.



work around:





  • change twice, e.g. old passwd is Bilbo1,




    • change to Frodo1 (from Bilbo1),


    • then change to Bilbo2 (from Frodo1).





why two changes ?




  • on the first change, Linux can only compare clear text Bilbo1 and Frodo1,


  • on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to Bilbo1(*)).


  • This suppose you can change twice, which may have been disable by your system admin, to prevent such work arround.



Needless to say, do not use such a silly password.



(*) On second tought, I am not sure about this point in Linux.






share|improve this answer
























  • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:57











  • Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

    – Archemar
    Sep 17 '14 at 12:24






  • 2





    well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

    – To Kra
    Sep 18 '14 at 8:29











  • that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

    – Archemar
    Sep 18 '14 at 8:34











  • normally I use pattern: bilbo0000BAGGINS

    – To Kra
    Sep 18 '14 at 8:42



















0














You can also use the -f option.



$passwd -f username
Changing password for user username.
New password:
Retype new password:





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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f155993%2fhow-to-force-change-linux-password-even-if-similar-as-previous%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    20














    If you can run the command as root, you can force the change to be accepted.



    Example:



    $ sudo passwd myusername
    Changing password for user myusername.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.





    share|improve this answer


























    • This is the perfect answer

      – Jadda
      Oct 3 '18 at 19:03
















    20














    If you can run the command as root, you can force the change to be accepted.



    Example:



    $ sudo passwd myusername
    Changing password for user myusername.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.





    share|improve this answer


























    • This is the perfect answer

      – Jadda
      Oct 3 '18 at 19:03














    20












    20








    20







    If you can run the command as root, you can force the change to be accepted.



    Example:



    $ sudo passwd myusername
    Changing password for user myusername.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.





    share|improve this answer















    If you can run the command as root, you can force the change to be accepted.



    Example:



    $ sudo passwd myusername
    Changing password for user myusername.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 10 '17 at 17:29

























    answered Jul 1 '15 at 16:09









    jwdjwd

    63847




    63847













    • This is the perfect answer

      – Jadda
      Oct 3 '18 at 19:03



















    • This is the perfect answer

      – Jadda
      Oct 3 '18 at 19:03

















    This is the perfect answer

    – Jadda
    Oct 3 '18 at 19:03





    This is the perfect answer

    – Jadda
    Oct 3 '18 at 19:03













    6














    Short answer: You can't.



    work around:





    • change twice, e.g. old passwd is Bilbo1,




      • change to Frodo1 (from Bilbo1),


      • then change to Bilbo2 (from Frodo1).





    why two changes ?




    • on the first change, Linux can only compare clear text Bilbo1 and Frodo1,


    • on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to Bilbo1(*)).


    • This suppose you can change twice, which may have been disable by your system admin, to prevent such work arround.



    Needless to say, do not use such a silly password.



    (*) On second tought, I am not sure about this point in Linux.






    share|improve this answer
























    • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

      – To Kra
      Sep 17 '14 at 11:57











    • Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

      – Archemar
      Sep 17 '14 at 12:24






    • 2





      well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

      – To Kra
      Sep 18 '14 at 8:29











    • that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

      – Archemar
      Sep 18 '14 at 8:34











    • normally I use pattern: bilbo0000BAGGINS

      – To Kra
      Sep 18 '14 at 8:42
















    6














    Short answer: You can't.



    work around:





    • change twice, e.g. old passwd is Bilbo1,




      • change to Frodo1 (from Bilbo1),


      • then change to Bilbo2 (from Frodo1).





    why two changes ?




    • on the first change, Linux can only compare clear text Bilbo1 and Frodo1,


    • on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to Bilbo1(*)).


    • This suppose you can change twice, which may have been disable by your system admin, to prevent such work arround.



    Needless to say, do not use such a silly password.



    (*) On second tought, I am not sure about this point in Linux.






    share|improve this answer
























    • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

      – To Kra
      Sep 17 '14 at 11:57











    • Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

      – Archemar
      Sep 17 '14 at 12:24






    • 2





      well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

      – To Kra
      Sep 18 '14 at 8:29











    • that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

      – Archemar
      Sep 18 '14 at 8:34











    • normally I use pattern: bilbo0000BAGGINS

      – To Kra
      Sep 18 '14 at 8:42














    6












    6








    6







    Short answer: You can't.



    work around:





    • change twice, e.g. old passwd is Bilbo1,




      • change to Frodo1 (from Bilbo1),


      • then change to Bilbo2 (from Frodo1).





    why two changes ?




    • on the first change, Linux can only compare clear text Bilbo1 and Frodo1,


    • on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to Bilbo1(*)).


    • This suppose you can change twice, which may have been disable by your system admin, to prevent such work arround.



    Needless to say, do not use such a silly password.



    (*) On second tought, I am not sure about this point in Linux.






    share|improve this answer













    Short answer: You can't.



    work around:





    • change twice, e.g. old passwd is Bilbo1,




      • change to Frodo1 (from Bilbo1),


      • then change to Bilbo2 (from Frodo1).





    why two changes ?




    • on the first change, Linux can only compare clear text Bilbo1 and Frodo1,


    • on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to Bilbo1(*)).


    • This suppose you can change twice, which may have been disable by your system admin, to prevent such work arround.



    Needless to say, do not use such a silly password.



    (*) On second tought, I am not sure about this point in Linux.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Sep 17 '14 at 8:05









    ArchemarArchemar

    20.1k93772




    20.1k93772













    • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

      – To Kra
      Sep 17 '14 at 11:57











    • Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

      – Archemar
      Sep 17 '14 at 12:24






    • 2





      well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

      – To Kra
      Sep 18 '14 at 8:29











    • that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

      – Archemar
      Sep 18 '14 at 8:34











    • normally I use pattern: bilbo0000BAGGINS

      – To Kra
      Sep 18 '14 at 8:42



















    • I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

      – To Kra
      Sep 17 '14 at 11:57











    • Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

      – Archemar
      Sep 17 '14 at 12:24






    • 2





      well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

      – To Kra
      Sep 18 '14 at 8:29











    • that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

      – Archemar
      Sep 18 '14 at 8:34











    • normally I use pattern: bilbo0000BAGGINS

      – To Kra
      Sep 18 '14 at 8:42

















    I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:57





    I did not want to change to same password. let say I have Bilbo1 and I want to change to Bilbo2, I get message above: "BAD PASSWORD: is too similar to the old one"... SO I am not changing to same password

    – To Kra
    Sep 17 '14 at 11:57













    Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

    – Archemar
    Sep 17 '14 at 12:24





    Well, did yo umanaged to change from Bilbo1 to Bilbo2 using Frodo1 between ?

    – Archemar
    Sep 17 '14 at 12:24




    2




    2





    well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

    – To Kra
    Sep 18 '14 at 8:29





    well, while trying change from Frodo1 to Bilbo2 I got message that: "You must wait longer to change your password" LOL

    – To Kra
    Sep 18 '14 at 8:29













    that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

    – Archemar
    Sep 18 '14 at 8:34





    that was my third point. my favourite password pattern is Bilbo00 / Frodo00 with 00 the current month.

    – Archemar
    Sep 18 '14 at 8:34













    normally I use pattern: bilbo0000BAGGINS

    – To Kra
    Sep 18 '14 at 8:42





    normally I use pattern: bilbo0000BAGGINS

    – To Kra
    Sep 18 '14 at 8:42











    0














    You can also use the -f option.



    $passwd -f username
    Changing password for user username.
    New password:
    Retype new password:





    share|improve this answer




























      0














      You can also use the -f option.



      $passwd -f username
      Changing password for user username.
      New password:
      Retype new password:





      share|improve this answer


























        0












        0








        0







        You can also use the -f option.



        $passwd -f username
        Changing password for user username.
        New password:
        Retype new password:





        share|improve this answer













        You can also use the -f option.



        $passwd -f username
        Changing password for user username.
        New password:
        Retype new password:






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 22 mins ago









        Will AEWill AE

        211




        211






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f155993%2fhow-to-force-change-linux-password-even-if-similar-as-previous%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

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux