vserver services name-service unix-group adduser
Add a user to a local UNIX group
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The vserver services name-service unix-group adduser
command adds a user to a local UNIX group.
Parameters
-vserver <vserver name>
- Vserver-
Use this parameter to specify the Vserver location of the local UNIX group to which the user is added.
-name <text>
- Group Name-
Use this parameter to specify the local UNIX group to which to add the user.
-username <text>
- Name of User-
Use this parameter to specify the user name to add to the local UNIX group.
[-skip-name-validation {true|false}]
- Skip Name Validation-
By default, Data ONTAP validates the name to ensure it complies with the following rules:
-
The name contains only these valid characters: 0 through 9, A through Z, a through z, "_", ".", and "-".
-
The name does not start with the character "-".
-
The name does not contain "$" except as the last character.
If the parameter is set to
true
, the name validation is skipped. -
Examples
The following example adds a user named tsmith to a local UNIX group named sales on a Vserver named vs0:
cluster1::> vserver services name-service unix-group adduser -vserver vs0 -name sales -username tsmith