ONTAP 9.15.1 commands

volume qtree security

Modify qtree security style

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command allows you to display or modify the security style of a qtree.

Parameters

-vserver <vserver name> - Vserver Name

This specifies the name of the Vserver on which the volume containing the qtree belongs.

{ -volume <volume name> - Volume Name

This specifies the name of the volume containing the qtree.

-qtree <qtree name> - Qtree Name

This specifies the name of the qtree for which the security style is being displayed or modified.

| -qtree-path <qtree path> - Actual (Non-Junction) Qtree Path }

The qtree path argument in the format /vol/<volume name>/<qtree name> can be specified instead of specifying volume and qtree as separate arguments. The automatically created qtree0 can be represented as /vol/<volume name>.

[-security-style <security style>] - Security Style

This specifies the new security style of the qtree. If this parameter is not specified, then the current security style of the qtree is displayed. The supported values are unix (for UNIX uid, gid and mode bits), ntfs (for CIFS ACLs), and mixed (for NFS and CIFS access). Modifying a qtree’s security style will not affect any of the files in the other qtrees of this volume.

Examples

The following example displays the security style of a qtree called qtree1. The Vserver name is vs0 and the volume containing the qtree is named vol1.

cluster1::> volume qtree security -vserver vs0 -volume vol1 -qtree qtree1
/vol/vol1/qtree1 has mixed security style and oplocks are disabled.

The following example modifies the security style of a qtree called qtree2 to unix. The Vserver name is vs0 and the volume containing the qtree is named vol1.

cluster1::> volume qtree security -vserver vs0 -volume vol1 -qtree qtree2 -security-style unix

The following example uses a 7G-compatible command to display and modify the security style of a qtree.

cluster1::> vserver context vs0
vs0::> qtree security /vol/vol1/qtree1
/vol/vol1/qtree1 has mixed security style and oplocks are disabled.
vs0::> qtree security /vol/vol1/qtree2 unix
Top of Page