chsr
This section needs rewriting.
chsr is the policy administration tool for RaR.
Use it to manage roles, tasks, command rules, credentials, and options.
Usage
chsr [COMMAND] [ARGS...]
Main command families
role: create/delete roles, grant/revoke actorsrole ... task: create/delete tasksrole ... task ... cmd: manage command allow/deny rulesrole ... task ... cred: managesetuid,setgid, and capabilitiesoptions: manage global/role/task execution optionsconvert: convert policy storage between JSON and CBOReditor: open interactive editor mode (when enabled)
chsr editor
chsr editor opens an interactive policy editing mode.
When the edit session is applied, RaR validates the policy before saving. Invalid content is rejected with explicit errors.
Use chsr editor for multi-field edits when you want immediate validation.
For policy field reference, see Configuration File Format. For storage migration, see File Format Conversion.
Common examples
chsr role ops add
chsr role ops grant -g ops
chsr role ops task reboot add
chsr role ops task reboot cmd whitelist add reboot
chsr role ops task reboot cred caps whitelist add CAP_SYS_BOOT
For complete policy fields, see Configuration File Format.