user_locked

Ensure the user is locked. User must already exist.

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
loginUser's login.

This parameter is required.

Outcome conditions

You need to replace ${login} with its actual canonified value.

  • ✅ Ok: user_locked_${login}_ok
    • ☑️ Already compliant: user_locked_${login}_kept
    • 🟨 Repaired: user_locked_${login}_repaired
  • ❌ Error: user_locked_${login}_error

Example

method: user_locked
params:
  login: VALUE

Documentation

This method does not create the user. Note that locked accounts will be marked with "!" in /etc/shadow, which is equivalent to "*". To unlock a user, apply a user_password method.