task-all

Function

The task-all command sets permissions for all tasks in batches.

Format

task-all { read | write | execute | debug } *

Parameters

Parameter Description Value
read

Indicates that users in a user group associated with a task have a permission to use commands of the read type in the task. Executing the commands of the read type does not change configurations.

-

write

Indicates that users in a user group associated with a task have a permission to use commands of the write type in the task. Executing the commands of the write type changes configurations.

-

execute

Indicates that users in a user group associated with a task have a permission to use commands of the execute type in the task. Troubleshooting and maintenance commands, excluding display and debugging commands, are of the execute type. Executing the commands of the execute type does not change configurations.

-

debug

Indicates that users in a user group associated with a task have a permission to use commands of the debug type in the task. Only debugging and undo debugging commands are of the debug type.

-

Views

Task group view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To ensure security, different users are granted with different permissions. You can run the task (task group view) command to set permissions for a task group so that users associated with this task group are granted with the set permissions. The task-all command sets permissions for all tasks in batches to reduce configuration workload.

Prerequisites

A task group has been created, and the task group view is displayed.

Example

# Set the read and write permissions for all tasks.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] task-group 1
[*HUAWEI-aaa-task-group-1] task-all read write
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >