com.limdm.localusers (list)¶
Console: Local accounts.
{"users": [{"name": "svc-backup", "uid": 1500, "full_name": "Backup", "groups": ["backup"],
"shell": "/bin/bash", "locked": false, "authorized_keys": ["ssh-ed25519 AAAA... backup@example.com"]}]}
| Field | Type | Rules |
|---|---|---|
users[].name |
text | lower case user name (a-z, digits, _, -, up to 32 characters), not root, unique |
users[].uid |
number | 1000 to 60000 or absent; used only when the account is created |
users[].full_name |
text | up to 100 characters, no colon or comma |
users[].groups |
list of text | up to 32 supplementary groups, must exist, not root |
users[].shell |
text | absolute path, default /bin/bash |
users[].locked |
true or false | lock the account and end its sessions |
users[].authorized_keys |
list of text | up to 100 SSH public keys as type base64 [comment], no options |
Merged by name. A missing account is created with a home and without a password, so it signs
in with its SSH keys; an existing account is never renumbered. Shell and groups are kept in
line: declared groups are added, groups an earlier version of the declaration added and that
are no longer listed are removed, other memberships stay. Unlocking undoes only a lock the
declaration set. authorized_keys are written root owned to
/etc/ssh/limdm_authorized_keys/<user>, never into the home, and a drop in
(/etc/ssh/sshd_config.d/00-limdm-keys.conf) makes sshd read them besides
~/.ssh/authorized_keys. This drop in takes precedence over an AuthorizedKeysFile set with
com.limdm.ssh. Accepted key types: ssh-ed25519, ssh-rsa, ssh-dss, ecdsa-sha2-nistp256,
ecdsa-sha2-nistp384, ecdsa-sha2-nistp521 and the sk- security key variants.
Accounts removed from the declaration are locked, never deleted, and their key file is removed. The imperative user commands on the device page keep working.
Field reference¶
Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.
com.limdm.localusers¶
Console: Local accounts. Local accounts with groups, shell and SSH keys.
| Field | Type | Meaning | Limits |
|---|---|---|---|
users |
list of object | Accounts | |
users[].name |
string | User name | |
users[].uid |
integer | UID Only used when the account is created; 1000 to 60000 or empty. | max 60000 |
users[].full_name |
string | Full name | |
users[].groups |
list of string | Groups Supplementary groups, must exist. | |
users[].shell |
string | Shell /bin/bash when empty. | |
users[].locked |
boolean | Locked | |
users[].authorized_keys |
list of string | SSH keys Public keys, one per entry, no options. |