•  
      request #6944 User gitolite not allowed because account is locked
    Infos
    #6944
    Manuel Vacelet (vaceletm)
    2014-05-26 17:45
    2014-05-26 17:43
    6969
    Details
    User gitolite not allowed because account is locked
    This message can happen... sometimes (seems to be true for centos5 and centos6 for latest updates)

    To make a long story short, in /etc/shadow there is a !! of the user password field and openssh takes this into account.

    SCM/Git
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Manuel Vacelet (vaceletm)
    Closed
    2014-05-26
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar

    On Centos5, this does the trick:

    sed -i 's/gitolite:!!:/gitolite:\*:/' /etc/shadow

    As an alternative, on Centos6,

    sed -i '/session    required     pam_loginuid.so/c\#session    required     pam_loginuid.so' /etc/pam.d/sshd

     

     
     

    • Status changed from Verified to Closed
    • Close date set to 2014-05-26