The requested article is not available. Either it doesn't apply to this version of the product or the relevant information is organized differently in this version of the docs. You can search, browse, or go back to the other version.
Modify local ONTAP SMB user accounts
You can modify a local user account if you want to change an existing user's full name or description, and if you want to enable or disable the user account. You can also rename a local user account if the user's name is compromised or if a name change is needed for administrative purposes.
If you want to… |
Enter the command… |
Modify the local user's full name
|
vserver cifs users-and-groups local-user modify -vserver vserver_name -user-name user_name ‑full-name text If the full name contains a space, then it must be enclosed within double quotation marks.
|
Modify the local user's description
|
vserver cifs users-and-groups local-user modify -vserver vserver_name -user-name user_name ‑description text If the description contains a space, then it must be enclosed within double quotation marks.
|
Enable or disable the local user account
|
vserver cifs users-and-groups local-user modify -vserver vserver_name -user-name user_name -is-account-disabled {true|false}
|
Rename the local user account
|
vserver cifs users-and-groups local-user rename -vserver vserver_name -user-name user_name -new-user-name new_user_name When renaming a local user, the new user name must remain associated with the same CIFS server as the old user name.
|
Example
The following example renames the local user “CIFS_SERVER\sue” to “CIFS_SERVER\sue_new” on storage virtual machine (SVM, formerly known as Vserver) vs1:
cluster1::> vserver cifs users-and-groups local-user rename -user-name CIFS_SERVER\sue -new-user-name CIFS_SERVER\sue_new -vserver vs1