Create a local UNIX user
You can use the
vserver services name-service unix-user create command to create local UNIX users. A local UNIX user is a UNIX user you create on the SVM as a UNIX name services option to be used in the processing of name mappings.
Create a local UNIX user:
vserver services name-service unix-user create -vserver vserver_name -user user_name -id integer -primary-gid integer -full-name full_name
-user user_namespecifies the user name. The length of the user name must be 64 characters or fewer.
-id integerspecifies the user ID that you assign.
-primary-gid integerspecifies the primary group ID. This adds the user to the primary group. After creating the user, you can manually add the user to any desired additional group.
The following command creates a local UNIX user named johnm (full name "John Miller") on the SVM named vs1. The user has the ID 123 and the primary group ID 100.
node::> vserver services name-service unix-user create -vserver vs1 -user johnm -id 123 -primary-gid 100 -full-name "John Miller"