Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • programmatically distinguish between locked password and locked User

    Posted on

    When locking a users password I see two "!!" in /etc/shadow:
    [root@RH7 ugu5ma]# cat /etc/shadow | grep test01
    test01:!!xxxxxxxxx

    When locking a users account I see one "!" in /etc/shadow:
    [root@RH7 ugu5ma]# cat /etc/shadow | grep test01
    test01:!xxxxxxxxx

    Am I correct with my observation ?
    I haven't found any detailed info in the docs and kb's..

    If so I will go ahead and create a bash-script to check the users-status.

    Thanks in advance
    ugu5ma2

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat