reset failed login count / unlock aix/UNIX account











up vote
0
down vote

favorite












As system administrator it is necessary to lock / unlock users or to reset failed login count.



let's look how we can perform lock / unlock users or to reset on UNIX/AIX










share|improve this question
























  • Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
    – Jeff Schaller
    May 14 at 13:41















up vote
0
down vote

favorite












As system administrator it is necessary to lock / unlock users or to reset failed login count.



let's look how we can perform lock / unlock users or to reset on UNIX/AIX










share|improve this question
























  • Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
    – Jeff Schaller
    May 14 at 13:41













up vote
0
down vote

favorite









up vote
0
down vote

favorite











As system administrator it is necessary to lock / unlock users or to reset failed login count.



let's look how we can perform lock / unlock users or to reset on UNIX/AIX










share|improve this question















As system administrator it is necessary to lock / unlock users or to reset failed login count.



let's look how we can perform lock / unlock users or to reset on UNIX/AIX







command-line aix accounts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 14 at 13:40









Jeff Schaller

36k952119




36k952119










asked May 12 at 6:11









PRAKASH

275




275












  • Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
    – Jeff Schaller
    May 14 at 13:41


















  • Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
    – Jeff Schaller
    May 14 at 13:41
















Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
– Jeff Schaller
May 14 at 13:41




Seems to me to be a duplicate of: unix.stackexchange.com/q/306499/117549
– Jeff Schaller
May 14 at 13:41










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Fist become root:



su - root
lsuser -a unsuccessful_login_count <userid>


reset unsuccessful login count:



chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>


unlock account:



chuser account_locked=false <userid>


to lock an AIX account:



chuser account_locked=true <userid>


check if locked:



lsuser <userid>


For Linux like redhat distros



pam_tally2 --user=test1
pam_tally2 --user=test1 --reset






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: 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%2f443353%2freset-failed-login-count-unlock-aix-unix-account%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Fist become root:



    su - root
    lsuser -a unsuccessful_login_count <userid>


    reset unsuccessful login count:



    chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>


    unlock account:



    chuser account_locked=false <userid>


    to lock an AIX account:



    chuser account_locked=true <userid>


    check if locked:



    lsuser <userid>


    For Linux like redhat distros



    pam_tally2 --user=test1
    pam_tally2 --user=test1 --reset






    share|improve this answer



























      up vote
      0
      down vote













      Fist become root:



      su - root
      lsuser -a unsuccessful_login_count <userid>


      reset unsuccessful login count:



      chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>


      unlock account:



      chuser account_locked=false <userid>


      to lock an AIX account:



      chuser account_locked=true <userid>


      check if locked:



      lsuser <userid>


      For Linux like redhat distros



      pam_tally2 --user=test1
      pam_tally2 --user=test1 --reset






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        Fist become root:



        su - root
        lsuser -a unsuccessful_login_count <userid>


        reset unsuccessful login count:



        chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>


        unlock account:



        chuser account_locked=false <userid>


        to lock an AIX account:



        chuser account_locked=true <userid>


        check if locked:



        lsuser <userid>


        For Linux like redhat distros



        pam_tally2 --user=test1
        pam_tally2 --user=test1 --reset






        share|improve this answer














        Fist become root:



        su - root
        lsuser -a unsuccessful_login_count <userid>


        reset unsuccessful login count:



        chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>


        unlock account:



        chuser account_locked=false <userid>


        to lock an AIX account:



        chuser account_locked=true <userid>


        check if locked:



        lsuser <userid>


        For Linux like redhat distros



        pam_tally2 --user=test1
        pam_tally2 --user=test1 --reset







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 days ago

























        answered May 12 at 6:11









        PRAKASH

        275




        275






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f443353%2freset-failed-login-count-unlock-aix-unix-account%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

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux