Edit standard and nonstandard map entries using the command line interface
Applies To: Windows Server 2008 R2, Windows Server 2012
To edit standard and nonstandard map entries using the command line
Note
When you use nismap to delete a user, group, or host object, only the UNIX attributes of the object are deleted. To delete the object from Active Directory, use the Active Directory administration tools.
To edit standard and nonstandard map entries by using the command line
At a command prompt, do one of the following.
To add a user to a passwd map, type:
nismap add –epasswdEntry**–a**nisDomain passwd
To modify a user in a passwd map, type:
nismap mod –e passwdEntry –kusername**–a** nisDomain passwd
To delete a user from a passwd map, type:
nismap del –kusername –anisDomain passwd
To add a group to a group map, type:
nismap add –e groupEntry –a nisDomain group
To modify a user from group map, type:
nismap mod –e groupEntry –k groupName –anisDomain group
To delete a user from group map, type:
nismap del –kgroupName –a nisDomaingroup
The following table describes arguments that are used with the nismap command to modify map entries. To view the complete syntax for this command, at a command prompt, type nismap /? .
Argument | Description |
---|---|
passwdEntry |
An entry from the passwd map. |
nisDomain |
The Network Information Service (NIS) domain. |
username |
The name of the user. |
groupEntry |
An entry from the group map. |
groupName |
The name of the group to which the user belongs. |