< Home

role files-share

Function

The role files-share command associates a role with a shared file resource.

The undo role files-share command cancels the association between a role and a shared file resource.

Format

role role-name files-share resource resource-name

undo role role-name files-share resource resource-name

Parameters

Parameter Description Value
role-name Specifies the role name. The value must be an existing role name.
resource-name Specifies the resource name. The value must be an existing shared file resource.

Views

Role view

Default Level

2: Configuration level

Usage Guidelines

When a role is associated with a resource, all the users and groups that belong to the role can access the resource.

A resource must belong to a role. A role can contain multiple resources, and a resource can belong to multiple roles.

A customized role can be associated with a maximum of 1024 resources. The maximum number of resources that can be associated with a default role is the same as the maximum number of resources allowed by the virtual gateway.

Example

# Associate role role1 with shared file resource book.

<sysname> system-view
[sysname] v-gateway abc
[sysname-abc] role
[sysname-abc-role] role role1 files-share resource book
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >