删除本地组

如果不再需要本地组来确定与 SVM 关联的数据访问权限,或如果不再需要其将 SVM 用户权限(特权)分配给组成员,则可从 Storage Virtual Machine (SVM) 中删除该本地组。

关于本任务

删除本地组时,请记住以下几点:

步骤

  1. 通过显示 SVM 上的本地组列表,确定要删除的本地组名称:vserver cifs users-and-groups local-group show -vserver vserver_name
  2. 删除本地组:vserver cifs users-and-groups local-group delete -vserver vserver_name -group-name group_name
  3. 验证是否已删除此组:vserver cifs users-and-groups local-user show -vserver vserver_name

示例

以下示例将删除与 SVM vs1 关联的本地组“CIFS_SERVER\sales”

cluster1::> vserver cifs users-and-groups local-group show -vserver vs1
Vserver   Group Name                   Description
--------- ---------------------------- ----------------------------
vs1       BUILTIN\Administrators       Built-in Administrators group
vs1       BUILTIN\Backup Operators     Backup Operators group
vs1       BUILTIN\Power Users          Restricted administrative privileges
vs1       BUILTIN\Users                All users
vs1       CIFS_SERVER\engineering    
vs1       CIFS_SERVER\sales          

cluster1::> vserver cifs users-and-groups local-group delete -vserver vs1 -group-name CIFS_SERVER\sales

cluster1::> vserver cifs users-and-groups local-group show -vserver vs1
Vserver   Group Name                   Description
--------- ---------------------------- ----------------------------
vs1       BUILTIN\Administrators       Built-in Administrators group
vs1       BUILTIN\Backup Operators     Backup Operators group
vs1       BUILTIN\Power Users          Restricted administrative privileges
vs1       BUILTIN\Users                All users
vs1       CIFS_SERVER\engineering