create_user
Create a new system user account with specified username and password, along with optional settings like home directory, group ID, and login shell.
Instructions
Create a new system user. This is a dangerous operation and is blocked in safe mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>",
"password": "<password>"
},
"name": "create_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gid | No | Group ID (auto-assigned if not specified) | |
| uid | No | User ID (auto-assigned if not specified) | |
| shell | No | Login shell (default: /bin/bash) | |
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| home_dir | No | Home directory (default: /home/username) | |
| password | Yes | Password for the new user | |
| username | Yes | Username (lowercase letters, digits, underscores, hyphens) | |
| real_name | No | Full name or comment |