vserver services name-service unix-user create
Create a local UNIX user
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The vserver services name-service unix-user create command creates a local UNIX user on a Vserver. You can use local UNIX users for Windows-to-UNIX and UNIX-to-Windows name mappings.
Parameters
- -vserver <vserver name> - Vserver
- This parameter specifies the Vserver on which you want to create the local unix user.
- -user <text> - User Name
- This parameter specifies the user account that you want to create.
- -id <integer> - User ID
- This parameter specifies an ID number for the user.
- -primary-gid <integer> - Primary Group ID
- This parameter specifies the ID number of the user's primary group.
- [-full-name <text>] - User's Full Name
- This parameter specifies the user's full name.
- [-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 valid characters: 0 through 9, A through Z, a through z, "_", ".", and "-"
- The name does not start with "-"
- 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 creates a local UNIX user named tsmith on a Vserver named vs0. The user has the ID 4219 and the primary group ID 100. The user's full name is Tom Smith.
vs1::> vserver services name-service unix-user create -vserver vs0 -user tsmith -id 4219 -primary-gid 100 -full-name "Tom Smith"
Give documentation feedback