me grant¶
Manage tree grants.
Grants control access to memories by tree path. A grant gives a user specific actions (read, write, create, delete, admin) on a tree path and all its descendants.
Commands¶
- me grant create -- grant tree access to a user
- me grant revoke -- revoke tree access
- me grant list -- list grants
- me grant check -- check if a user has access
me grant create¶
Grant tree access to a user.
| Argument | Required | Description |
|---|---|---|
user |
yes | User name or ID. |
path |
yes | Tree path to grant access to. |
actions... |
yes | One or more actions: read, write, create, delete, admin. |
| Option | Description |
|---|---|
--with-grant-option |
Allow the grantee to re-grant this access to others. |
Example¶
me grant revoke¶
Revoke tree access from a user.
| Argument | Required | Description |
|---|---|---|
user |
yes | User name or ID. |
path |
yes | Tree path to revoke access from. |
me grant list¶
List grants.
| Argument | Required | Description |
|---|---|---|
user |
no | Filter by user name or ID. |
Displays a table of grants with user, tree path, actions, and grant option.
me grant check¶
Check if a user has access to a tree path.
| Argument | Required | Description |
|---|---|---|
user |
yes | User name or ID. |
path |
yes | Tree path. |
action |
yes | Action to check: read, write, create, delete, admin. |
Reports whether access is allowed or denied.