Changing the Centrify UIDs and GIDs

To change the UID and GID values in Centrify Active Directory to match the existing values:

  1. Log in to the Mac computer as a local administrator.
  2. Open a terminal session.
  3. Open the user’s home folder and type:
    ls -ln total 32
    
    -rw-r--r--@  1 505  505     3 Mar 26  2007 .CFUserTextEncoding
    
    -rw-r--r--@  1 505  505  6148 Mar 26  2007 .DS_Store
    
    -rw-------   1 505  505    74 Mar 26  2007 .bash_history
    
    drwx------@  3 505  505   102 Mar 26  2007 Desktop
    
    drwx------@  3 505  505   102 Mar 26  2007 Documents
    
    drwx------@ 19 505  505   646 Mar 26  2007 Library
    
    drwx------@  3 505  505   102 Mar 26  2007 Movies
    
    drwx------@  3 505  505   102 Mar 26  2007 Music
    
    drwx------@  4 505  505   136 Mar 26  2007 Pictures
    
    drwxr-xr-x@  4 505  505   136 Mar 26  2007 Public
    
    drwxr-xr-x@  5 505  505   170 Mar 26  2007 Sites
    
    

    The third column shows the UID (505 in this example) and the fourth column shows the GID (also 505).

  4. On the Windows workstation, open the Access Manager console. Expand the zone, expand users, and double-click the user to open the property page.

  5. Type 505 for the UID.

  6. To change the GID, you need to either change the GID of the group to which the user belongs (which will change for all users who belong to that group) or create a new group. To create a new group:

    • Open ADUC. Then right-click Users > New > Group. Enter a name for the group and click OK.

    • In the Access Manager console, right click Groups > Create UNIX Group. Search for the group you created. Change the GID to the desired value (for example, 505) and click OK.

  7. To change the GID of the existing group to which the user belongs, expand Groups and double-click the group name. Change the GID to the desired value (for example, 505). Click Yes on the warning message.