删除本地用户帐户

如果不再需要本地用户帐户向 CIFS 服务器执行本地 SMB 身份验证,或者不再需要它来确定 SVM 上所含数据的访问权限,则可从 Storage Virtual Machine (SVM) 中删除该本地用户帐户。

关于本任务

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

步骤

  1. 确定您要删除的本地用户帐户的名称:vserver cifs users-and-groups local-user show -vserver vserver_name
  2. 删除本地用户:vserver cifs users-and-groups local-user delete -vserver vserver_name -user-name username_name
  3. 验证是否已删除此用户帐户:vserver cifs users-and-groups local-user show -vserver vserver_name

示例

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

cluster1::> vserver cifs users-and-groups local-user show -vserver vs1
Vserver  User Name                   Full Name      Description
-------- --------------------------- -------------- -------------
vs1      CIFS_SERVER\Administrator   James Smith    Built-in administrator account
vs1      CIFS_SERVER\sue             Sue   Jones


cluster1::> vserver cifs users-and-groups local-user delete -vserver vs1 -user-name CIFS_SERVER\sue

cluster1::> vserver cifs users-and-groups local-user show -vserver vs1
Vserver      User Name                   Full Name      Description
-------- --------------------------- -------------- -------------
vs1      CIFS_SERVER\Administrator   James Smith    Built-in administrator account