UID & GID Do Not Match When the Specified UID is Less Than 500 (Doc ID 1585043.1)

Last updated on JUNE 06, 2017

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Information in this document applies to any platform.
When running useradd in OL 6, the uid & gid do not match when the specified uid is less than 500.

Goal

There can be scenarios on Oracle Linux 6 where one would want to have the User Id and the Group Id match when adding a new user - If the User ID is less than 500, the group ID by default does not match the user ID - This note outlines how to have them match.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms