Share via


Selecting the UNIX user name source

Applies To: Windows Server 2003 R2

To specify the UNIX user name source using the Windows interface

  1. Open Microsoft Services for Network File System: click Start, point to Programs, point to Administrative Tools, and then click Microsoft Services for Network File System.

  2. If necessary, connect to the computer you want to manage.

  3. Right-click User Name Mapping, and then click Properties.

  4. Do one of the following:

    • Select Use Network Information Service (NIS), or

    • Select Use Password and Group files, and in the Password file path and name and the Group file path and name boxes type or browse to the password and group files.

  5. You can use the default refresh interval provided or change it by typing a new day, hour and minute interval.

  6. To save the settings, click Apply.

    Note

    If you use password and group files, the files must be stored on the local computer that is running User Name Mapping. Typically, these files are the /etc/passwd and /etc/group files that are copied from a UNIX server and then periodically updated by the administrator of the computer that is running User Name Mapping. If you are using password and group files and need to map users from multiple UNIX servers, you must combine the multiple password files so that each user is assigned a unique user identifier (UID) and combine the multiple group files so that each group is assigned a unique group identifier (GID). You should not set up User Name Mapping to use password and group files which are using Microsoft Services for Network File System (NFS) to set up maps that use password and group files that are stored on a remote computer. The refresh interval determines how often User Name Mapping refreshes password and group information from the NIS server or the password and group files.

To specify the UNIX user name source using the command line

  1. Open the command prompt.

  2. To select the UNIX user name source, do one of the following:

    • To use Network Information Service (NIS), at a command prompt, type:

    mapadmin [ComputerName] [–uUser**] [–pPassword] config –dntDomain –ynisDomain [–nnisServer]**

    • To use password and group files, at a command prompt, type:

    mapadmin [ComputerName] [–uUser**] [–pPassword] config –d**ntDomain –fPassword/GroupDirectory

  3. To select simple or advanced maps, at a command prompt, type:

    mapadmin [ComputerName] [–uUser**] [–pPassword] config –i {yes|no}**

  4. To specify the refresh interval for password and group information, at a command prompt, type:

    mapadmin [ComputerName] [–uUser**] [–pPassword] config –r**dddd:hh:mm

    Argument Description

    ComputerName

    The name of the computer you want to manage.

    User

    The name of the user who has administrative privileges on the computer, if different from the current user.

    Password

    The password for the person who has administrative privileges on the computer, if different from the current user.

    ntDomain

    The name of the Windows domain.

    Password/GroupDirectory

    The fully qualified path of the directory where the password and group files are located on the computer that is running User Name Mapping.

    nisDomain

    The name of the NIS domain.

    nisServer

    The name of the NIS server (optional).

    dddd:hh:mm

    How often, in days, hours, and minutes, User Name Mapping will refresh password and group information from the NIS server or the password and group files.

    Note

    If you use password and group files, the files must be stored on the local computer that is running User Name Mapping. Typically, these files are the /etc/passwd and /etc/group files that are copied from a UNIX server and then periodically updated by the administrator of the computer that is running User Name Mapping. If you are using password and group files and need to map users from multiple UNIX servers, you must combine the multiple password files so that each user is assigned a unique user identifier (UID) and combine the multiple group files so that each group is assigned a unique group identifier (GID). You cannot use the mapadmin command to set up mappings that use password and group files on a remote computer. The refresh interval determines how often User Name Mapping refreshes password and group information from the NIS server or from the password and group files.