aaa authorization commands
Syntax
aaa authorization commands {local | none} aaa authorization commands group no aaa authorization commands
Description
Defines authorization as being basic local RBAC (specified asnone
), or as full-fledged local RBAC specified aslocal
(the default), or as remote TACACS+ (specified withgroup
). Each available connection type (channel) can be configured individually. All server groups named in the command, must exist. This command can be issued multiple times, once for each connection type.
Theno
form of this command unconfigures authorization for the specified connection type, reverting to the default oflocal
.
Command context
config
Parameters
-
-
th之一ese connection types (channels):
-
default
-
Selects the
default
connection type for configuration. This configuration applies to all other connection types (console
,ssh
) that are not explicitly configured with this command. For example, if you do not useaaa authorization commands console...
to define the console authorization list, then this default configuration is used for console.
-
console
-
Selects the
console
connection type for configuration.
-
ssh
-
Selects the
ssh
connection type for configuration.
-
-
local
(the default) -
When used alone without
group
, selects local authorization which can be used to provide authorization for a purely local setup without any remote AAA servers and also for when RADIUS is used for remote Authentication and Accounting but Authorization is local.When used aftergroup
, provides for fallback (to full-fledged local authorization) when every server in every specified TACACS+ server group cannot be reached.NOTE:If any TACACS+ server in the specified groups is reachable, but the command fails to be authorized by that server, the command is rejected and local authorization is never attempted. Local authorization is only attempted if every TACACS+ server cannot be reached.
-
none
-
When used alone without
group
, selects basic local RBAC authorization, for use with the built-in user groups (administrators
,operators
,auditors
).When used after
group
, provides for fallback (to basic local RBAC authorization) when every server in every specified TACACS+ server group cannot be reached.NOTE:With
none
, for users belonging to user-defined user groups, all commands can be executed regardless of what authorization rules are defined in such groups. For per-command local authorization, uselocal
instead. -
group
-
Specifies the list of remote AAA server group names. Predefined remote AAA group name
tacacs
is available. User-defined TACACS+ server group names may also be used. The remote AAA server groups are accessed in the order that the group names are listed in this command. Within each group, the servers are accessed in the order in which the servers were added to the group. Server groups are defined using commandaaa server group
and servers are added to a server group using commandserver
.It is recommended to always include either the special name
local
ornone
as the last name in the group list. If bothlocal
andnone
are omitted, and no remote AAA server is reachable (or the first reachable server cannot authorize the command), command execution for the current user will not be possible.
Authority
Administrators or local user group members with execution rights for this command.
Examples
设置默认的授权local
:
switch(config)#aaa authorization commands default local
Setting the authorization for the SSH interface tonone
:
switch(config)#aaa authorization commands ssh none