users/list
List local user accounts (UID, GID, home, shell, groups) from /etc/passwd and /etc/group, sorted by UID. Read-only; min_uid excludes system accounts.
Instructions
Lists local user accounts from /etc/passwd and /etc/group (uid, gid, home, shell, supplementary group memberships), sorted by uid. Read-only. Never reads /etc/shadow - this reports account identity, not credentials. Local files only: LDAP/SSSD users are not listed. min_uid (e.g. 1000) hides system accounts. Text lines look like name (uid=N gid=N(group)) home=... shell=... groups=a,b; output_format: json returns an array of objects (username, uid, gid, group_name, comment, home_dir, shell, groups). For who logged in use logs/logins, for your own root grants auth/sudo-rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_uid | No | Only include users with UID >= this value (e.g. 1000 to exclude system accounts) | |
| privileged | No | Run as root. Needs a grant for this tool in mcp-sudo.yaml, otherwise refused | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text |