Skip to main content

vserver cifs share access-control create

Contributors
Suggest changes

Create an access control list

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

Description

The vserver cifs share access-control create command adds a user or group to a CIFS share's ACL.

Parameters

-vserver <vserver name> - Vserver

This parameter specifies the name of the Vserver containing the CIFS share.

-share <Share> - Share Name

This parameter specifies the name of the CIFS share.

-user-or-group <TextNoCase> - User/Group Name

This parameter specifies the user or group to add to the CIFS share's access control list. If you specify the user name, you must include the user's domain using the format "domain\username". The user-or-group parameter is case-insensitive text.

[-user-group-type {windows|unix-user|unix-group}] - User or Group Type

This parameter specifies the type of the user or group to add to the CIFS share's access control list. The default type is windows. The user-group-type can be one of the following:

  • windows

  • unix-user

  • unix-group

-permission <access rights> - Access Type

This parameter specifies the permissions for the user or group. The permissions can be one of the following:

  • No_access

  • Read

  • Change

  • Full_Control

Examples

The following example adds the windows group "Everyone" with "Full_Control" permission to the access control list of the share "vol3".

vs1::> vserver cifs share access-control create -share vol3 -user-or-group Everyone -user-group-type windows -permission Full_Control

The following example adds the unix-user "pcuser" and unix-group "daemon" with "read" permission to the access control list of the share "vol3".

vs1::> vserver cifs share access-control create -share vol3 -user-or-group pcuser -user-group-type unix-user -permission read
        vs1::> vserver cifs share access-control create -share vol3 -user-or-group daemon -user-group-type unix-group -permission read