User Credential Management
Overview
Use vjbctl to manage user credentials: list users, delete users, change passwords, and refresh credentials.
Assumptions
Before you start, ensure the following prerequisites are fulfilled:
- vJailbreak is installed and configured properly.
Command Reference
The following commands are available for user credential management:
# List usersvjbctl user list
# create a new uservjbctl user create <username>
# Delete a uservjbctl user delete <username>
# Change a user's passwordvjbctl user change-password <username>
# Refresh user credentialsvjbctl user refreshTip: Append
--no-restarttovjbctl usersubcommands (e.g.,create,delete,change-password) to defer applying changes. Then runvjbctl user refreshonce to apply all pending changes for better efficiency.
Usage
Note: After any user change (e.g., password updates or deletions), run
vjbctl user refreshfor the changes to be reflected.
List users
vjbctl user listDelete a user
Delete a user and remove their credentials from the system:
vjbctl user delete <username>Change a user’s password
Change the password for an existing user:
vjbctl user change-password <username>You will be prompted to enter the new password in the terminal.
Batch multiple changes efficiently
To avoid refreshing after every change, you can batch multiple operations using --no-restart and then apply them all at once with a single refresh:
# Defer applying changes while making multiple updatesvjbctl user create <username> --no-restartvjbctl user change-password <username> --no-restartvjbctl user delete <username> --no-restart
# Apply all pending changesvjbctl user refreshRefresh user credentials
Refresh user credentials for active users:
vjbctl user refreshExamples
The following sequence demonstrates a typical workflow for updating user credentials:
# Inspect existing usersvjbctl user list
# Create a new uservjbctl user create john.doe# For changes to be reflected, refreshvjbctl user refresh
# Update password for a specific uservjbctl user change-password jane.doe# For changes to be reflected, refreshvjbctl user refresh
# Remove a deprovisioned uservjbctl user delete temp.user# For changes to be reflected, refreshvjbctl user refresh