A configuration change made by this command does not take effect for the current session. It takes
effect for subsequent login sessions.
After you execute the
execute the
Examples
# Enable command accounting for VTY line 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] command accounting
Related commands
accounting command
command authorization
command authorization
Use
command authorization
Use
undo command authorization
Syntax
command authorization
undo command authorization
Default
Command authorization is disabled. Logged-in users can execute commands without authorization.
Views
User line view
User line class view
Predefined user roles
network-admin
Usage guidelines
When command authorization is enabled, a user can only use commands that are permitted by both
the AAA scheme and user role.
A configuration change made by this command does not take effect for the current session. It takes
effect for subsequent login sessions.
If you execute the
authorization is enabled for all user lines in the class. You cannot execute the
authorization
Examples
# Enable command authorization for VTY line 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] command authorization
Related commands
authorization command
command accounting
undo command accounting
(Security Command Reference)
command authorization
command in the view of a user line in the class.
(Security Command Reference)
command in user line class view, you cannot
command in any user line views in the class.
to enable command authorization.
to disable command authorization.
command in user line class view, command
7
undo command