此示例添加例外以为用户 "brendan" 排除 svc 范围授权:
caji:configuration users brendan> exceptions caji:configuration users brendan exceptions> create caji:configuration users brendan auth (uncommitted)> show Properties: scope = (unset) caji:configuration users brendan auth (uncommitted)> set scope=svc scope = svc caji:configuration users brendan auth (uncommitted)> show Properties: scope = svc service = * allow_administer = false allow_configure = false allow_restart = false caji:configuration users brendan auth (uncommitted)> commit caji:configuration users brendan exceptions> show Auths: NAME OBJECT PERMISSIONS auth-000 svc.* none caji:configuration users brendan exceptions> select auth-000 caji:configuration users brendan auth-000> show Properties: scope = svc service = * allow_administer = false allow_configure = false allow_restart = false caji:configuration users brendan auth-000>示例 2-6 CLI 示例,添加例外以包括范围授权:
此示例添加例外以包括不是角色 "webadmin" 的一部分的范围授权:
caji:configuration users brendan exceptions> create caji:configuration users brendan auth (uncommitted)> set scope=appliance scope = appliance caji:configuration users brendan auth (uncommitted)> show Properties: scope = appliance service = * allow_audit = false allow_factoryReset = false allow_powerOff = false allow_reboot = false allow_setName = false allow_shell = false caji:configuration users brendan auth (uncommitted)> set allow_audit=true allow_audit = true (uncommitted) caji:configuration users brendan auth (uncommitted)> commit caji:configuration users brendan exceptions> show Auths: NAME OBJECT PERMISSIONS auth-000 svc.* none auth-001 appliance.* audit caji:configuration users brendan exceptions>