Appearance
User Management Commands
User commands operate on the SafeCall SQLite users table.
safecall app users create
Creates a new user.
Usage
bash
sudo ./util.sh app users createPrompts
- password + confirmation
- admin flag (
1for admin,0for non-admin, default0)
Behavior highlights
- Rejects duplicate email.
- Stores password as hash.
safecall app users delete
Deletes a user by email.
Usage
bash
sudo ./util.sh app users deleteBehavior highlights
- Prompts for email.
- Requires confirmation (
y) before deletion.
safecall app users reset-password
Resets password for the default configured user email.
Usage
bash
sudo ./util.sh app users reset-passwordHidden behavior
- Target email is taken from
server_credentials_default_emailin config. - It does not ask for arbitrary email in this mode.
Prerequisites and caveats
- Command expects
config/main.config.jsonin current directory (legacy fallback:main.config.json). - Database path is loaded from
server_db_pathin config. - If config or DB is missing, command exits with an error.