user_locked
Ensure the user is locked. User must already exist.
⚙️ Compatible targets: Linux
Parameters
| Name | Documentation |
|---|---|
| login | User'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
- ☑️ Already compliant:
- ❌ 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.